AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Snippets and Tutorials (https://forums.alliedmods.net/forumdisplay.php?f=112)
-   -   [INC] Extended Logging (https://forums.alliedmods.net/showthread.php?t=247769)

Bara 09-07-2014 16:51

[INC] Extended Logging
 
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

Drixevel 09-07-2014 17:47

Re: [INC] Extended Logging - 1.0.0
 
Useful, thanks.

Bara 06-09-2015 08:51

Re: [INC] Extended Logging
 
Updated to Version 2.0.0

  • Include requires now sourcemod 1.7 and is fully compatible with

Quote:

#pragma newdecls required


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

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