|
Atrinik Server 2.5
|
Go to the source code of this file.
Functions | |
| static void | do_print (const char *buf) |
| void | LOG (LogLevel logLevel, const char *format,...) |
Variables | |
| static const char *const | loglevel_names [] |
| static uint8 | loglevel_name_disable = 0 |
The LOG system is more than a logger - it works also as error and bug counter system.
Every llevBug LOG will increase the bug counter of the server - if too many errors occur, the server will start an emergency shutdown. This will avoid bug loops or every round LOGs, which will fill the log file quickly.
llevError is always irrecoverable and fatal - if it happens, the server is not stable anymore and it will shutdown immediately.
Definition in file logger.c.
| static void do_print | ( | const char * | buf | ) | [static] |
| void LOG | ( | LogLevel | logLevel, |
| const char * | format, | ||
| ... | |||
| ) |
Logs a message to stderr, or to file, and/or even to socket. Or discards the message if it is of no importance, and none have asked to hear messages of that logLevel.
See include/logger.h for possible logLevels. Messages with llevSystem and llevError are always printed, regardless of debug mode.
Additionally, llevError message will cause the server to exit.
| logLevel | Log level of the message |
| format | Format specifiers |
| ... | Arguments for the format |
uint8 loglevel_name_disable = 0 [static] |
If 1, will not print one of loglevel_names on the next LOG() call.
const char* const loglevel_names[] [static] |
1.7.4