List of all log messages

Below is a long list of all log messages that are generated in UnrealIRCd. It is mostly meant for JSON log consumers &amp; UnrealIRCd coders and not so much for end-users trying to debug a particular problem. It will tell you how the log message looks, what JSON data is included and where the message is generated in the source code.

The list is grouped by subsystem. For an explanation of severities, subsystems, etc. see Log sources.

How to use this list for debugging
This list is mostly meant for finding out JSON data (see next item), but C coders can also use it to debug problems or just in case they wonder where exactly in the source a particular log message is generated or for what reason. In that case, simply CTRL+F on this page to search on the event id (eg: ) to find all details of the logging call, including direct link to the source code.

How to use this list for JSON data
Say, you want to parse the JSON messages from UnrealIRCd logging. The format for this is documented at JSON logging but every event may contain specific extra variables or objects. You can use this list of log messages to discover these.

For example, if you look at the connect subsystem at the 3rd item, the event  there you can see the unreal_log function call like this:

unreal_log(ULOG_INFO, "connect", "LOCAL_CLIENT_DISCONNECT", client,          "Client exiting: $client ($client.user.username@$client.hostname) [$client.ip] ($reason)",           log_data_string("extended_client_info", get_connect_extinfo(client)),           log_data_string("reason", comment),           log_data_integer("connected_time", connected_time));

Every unreal_log call has the following parameters:
 * 1) Severity, eg
 * 2) Subsystem, eg
 * 3) Event ID, eg
 * 4) Client, eg , or  . This will decide if the client object is included.
 * 5) Human readable string with $variables, in this example:
 * 6)   function calls for variables. All these variables are included in the JSON data and they can also be used in the human readable string.

The 3 extra  items in this particular case contain:
 * : which comes from get_connect_extinfo
 * : which is the exit comment, such as the /QUIT reason.
 * : an integer describing how long the user was online