Raised This Month: $ Target: $400
 0% 

[INC] Extended Logging


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Bara
AlliedModders Donor
Join Date: Apr 2012
Location: Germany
Old 09-07-2014 , 16:51   [INC] Extended Logging
Reply With Quote #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
__________________
Discord (Bara#5006) | My Plugins (GitHub)
You like my work? Support is not a crime.

Last edited by Bara; 12-12-2021 at 15:03. Reason: Updated include to version 2.0.0
Bara is offline
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:37.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode