# /log

Sets how much the server writes to its log. The game's help: Set log level. Use /log "packet type" "log severity"

Source page: https://zomboiddb.com/commands/log/

Command

`/log`

Who can use it

moderator and above

Capability

`DebugConsole`

Single player

No, it needs a server

## What you type

`/log "type" "level"`

## What the game answers

- DebugLog save succeeded
- DebugLog save failed
- All packet types logging is enabled
- All packet types logging is disabled

## Which access levels can use it

| Capability | banned | user | priority | observer | gm | moderator | admin |
| --- | --- | --- | --- | --- | --- | --- | --- |
| `DebugConsole` | | | | | | yes | yes |

These are the roles the game makes for a new server. An admin can change them in the admin panel. [What each level may do](https://zomboiddb.com/access-levels/).

## More commands like this one

[/save](https://zomboiddb.com/commands/save/) [/servermsg](https://zomboiddb.com/commands/servermsg/) [/quit](https://zomboiddb.com/commands/quit/) [/reloadoptions](https://zomboiddb.com/commands/reloadoptions/) [/changeoption](https://zomboiddb.com/commands/changeoption/) [/showoptions](https://zomboiddb.com/commands/showoptions/) [/help](https://zomboiddb.com/commands/help/) [/clear](https://zomboiddb.com/commands/clear/) [/reloadlua](https://zomboiddb.com/commands/reloadlua/) [/reloadalllua](https://zomboiddb.com/commands/reloadalllua/) [/checkModsNeedUpdate](https://zomboiddb.com/commands/checkmodsneedupdate/) [/stats](https://zomboiddb.com/commands/stats/)
