|
Author
|
Message
|
|
AlliedModders Donor
Join Date: Apr 2012
Location: Germany
|

09-07-2014
, 16:51
[INC] Extended Logging
|
#1
|
Extended Logging is a small extension to the normal logging include. The log entries are sorted categorically. This plugin created by default (provided that such level is in use) the level folder (trace, debug, info, warn and error), if no path name is specified. Otherwise it would look like this 'addons/sourcemod/logs/path'. You can define the file name self and insert in the file name a date (optimal).
Functions:- Log_Default(const char[] path = "", const char[] file = "file", const char[] date = "", const char[] format, any ...)
- Log_Trace(const char[] path = "", const char[] file = "file", const char[] date = "", const char[] format, any ...)
- Log_Debug(const char[] path = "", const char[] file = "file", const char[] date = "", const char[] format, any ...)
- Log_Info(const char[] path = "", const char[] file = "file", const char[] date = "", const char[] format, any ...)
- Log_Warn(const char[] path = "", const char[] file = "file", const char[] date = "", const char[] format, any ...)
- Log_Error(const char[] path = "", const char[] file = "file", const char[] date = "", const char[] format, any ...)
- Log_File(const char[] path = "", const char[] file = "file", const char[] date = "", ELOG_LEVEL level = INFO, const char[] format, any ...)
Levels:- 0 - DEFAULT
- 1 - TRACE
- 2 - DEBUG
- 3 - INFO
- 4 - WARN
- 5 - ERROR
Download:
https://github.com/Bara/Extended-Logging
__________________
Last edited by Bara; 12-12-2021 at 15:03.
Reason: Updated include to version 2.0.0
|
|
|
|