# Logging

## Severities

<table><thead><tr><th width="148">Tag</th><th width="159">Severity</th></tr></thead><tbody><tr><td>'d'</td><td>Debug</td></tr><tr><td>'i'</td><td>Info</td></tr><tr><td>'w'</td><td>Warning</td></tr><tr><td>'e'</td><td>Error</td></tr><tr><td>'s'</td><td>Success</td></tr></tbody></table>

## Functions

{% hint style="warning" %}
Debug logs may don't show up depending on your ingame settings
{% endhint %}

<details>

<summary>sWatch.log</summary>

Prints a log to the server console

#### Arguments

1. **(String)** loglevel - See [#severities](#severities "mention")
2. **(String)** message

#### Example

```
sWatch.log("d", "A debug message")
sWatch.log("w", "A warning message")
// Too lazy to complete, self-explanatory
```

</details>

<details>

<summary>sWatch.getErrors</summary>

Returns a table of all error logs that accured during runtime. Used e. g. in server health.

#### Returns

1. **(Table)** errors

</details>

