Log: Difference between revisions

From TinyMUX
Jump to navigation Jump to search
Mark (talk | contribs)
m categorize
 
No edit summary
 
Line 1: Line 1:
[[Category:Configuration]]
[[Category:Configuration]]
== Description ==
Configuration Parameter: log [!]<logoption> [[!]<logoption]...


Specifies the types of events that should be written to the logfile.
== Configuration Parameter: <code>log</code> ==


{| align="center" cellpadding="5"
Controls which events are written to the MUX logfile. You can enable multiple log options by listing them, separated by spaces. To disable an option, prefix it with `!`.
| accounting  
 
| Write an accounting record to the log for each player who disconnects.
Example:
|+
<pre>
| all_commands
log all_commands bad_commands !shouts
| Record all commands executed.
</pre>
|+
 
| bad_commands  
This would log all executed commands and unmatched commands, but suppress logging of `@wall`/shout messages.
| Record commands entered that did not match anything.
 
|+
== Log Options ==
| buffer_alloc
 
| Record buffer allocates and frees.
{| class="wikitable"
|+
! Option !! Description
| bugs  
|-
| Record internal inconsistencies found.
| <code>accounting</code> || Logs each player's disconnection with an accounting record.
|+
|-
| checkpoints
| <code>all_commands</code> || Logs every command executed.
| Record automatic database dumps.
|-
|+
| <code>bad_commands</code> || Logs commands that do not match anything.
|config_changes
|-
|Record uses of the [[@admin]] command.
| <code>buffer_alloc</code> || Logs memory buffer allocations and frees.
|+
|-
| create
| <code>bugs</code> || Logs internal inconsistencies detected by the server.
| Record creation of new players.
|-
|+
| <code>checkpoints</code> || Logs automatic database dump events.
| killing
|-
| Record use of the [[kill]] and [[slay]] commands
| <code>config_changes</code> || Logs uses of the [[@admin]] command.
|+
|-
| logins
| <code>create</code> || Logs creation of new players.
| Record connects to characters.
|-
|+
| <code>killing</code> || Logs uses of [[kill]] and [[slay]] commands.
| network
|-
| Record new and broken net connections.
| <code>logins</code> || Logs character connection events.
|+
|-
| problems
| <code>network</code> || Logs network connection and disconnection events.
| Record problems found with the database.
|-
|+
| <code>problems</code> || Logs database-related issues.
| security  
|-
| Record security-related events.
| <code>security</code> || Logs security-related events.
|+
|-
| shouts
| <code>shouts</code> || Logs use of [[@wall]] and related global shouts.
| Record uses of the [[@wall]] command.
|-
|+
| <code>startup</code> || Logs messages related to game startup.
| startup
|-
| Record information about game startup.
| <code>suspect</code> || Logs commands from [[SUSPECT]]-flagged players.
|+
|-
| suspect
| <code>wizard</code> || Logs use of dangerous or admin-level commands such as [[@toad]].
| Record commands entered by [[SUSPECT]] players.
|+
| wizard  
| Record uses of dangerous commands like [[@toad]].
|}
|}


 
== Related Topics ==
Related Topics:: [[Configuration]], [[@admin]], [[log_options]]
* [[Configuration]]
* [[@admin]]
* [[log_options]]

Latest revision as of 12:06, 24 March 2025


Configuration Parameter: log

Controls which events are written to the MUX logfile. You can enable multiple log options by listing them, separated by spaces. To disable an option, prefix it with `!`.

Example:

log all_commands bad_commands !shouts

This would log all executed commands and unmatched commands, but suppress logging of `@wall`/shout messages.

Log Options

Option Description
accounting Logs each player's disconnection with an accounting record.
all_commands Logs every command executed.
bad_commands Logs commands that do not match anything.
buffer_alloc Logs memory buffer allocations and frees.
bugs Logs internal inconsistencies detected by the server.
checkpoints Logs automatic database dump events.
config_changes Logs uses of the @admin command.
create Logs creation of new players.
killing Logs uses of kill and slay commands.
logins Logs character connection events.
network Logs network connection and disconnection events.
problems Logs database-related issues.
security Logs security-related events.
shouts Logs use of @wall and related global shouts.
startup Logs messages related to game startup.
suspect Logs commands from SUSPECT-flagged players.
wizard Logs use of dangerous or admin-level commands such as @toad.

Related Topics