[RELEASE] ODZTools / Logger

Pwn

Administrator
Staff member
Name: ODZTools / Logger

Description: Attempting to work with the current log system is very limited and makes it difficult to track errors and gather data. This allows messages to be logged to separate file that is dated and stored within your server's profile. Once the initialization method has completed, a folder will appear named ODZLogs (by default) and will contain dated .log files.

Repository: GitHub

Includes:
Include the following line in the top init.c of your mission file
C:
#include "ODZTools/Scripts/Logger/Logger.c"

Initialization:
C:
Logger.Init();

Usage:
C:
Logger.Log(LogType.Debug, "This is a debug message!");
Logger.Log(LogType.Info, "This is a info message!");
Logger.Log(LogType.Warning, "This is a warning message!");
Logger.Log(LogType.Error, "This is a error message!");

License:
Feel free to use this script wherever you want for whatever you want. Just give credit where credit is due.
 
I also find that you need to use this dir.

mpmissions/dayzOffline.chernarusplus/ in front of the dir for the scripts.
If you extract the whole repository to the root of your DayZ server folder it should work without an issue. If you are running into an issue, send over some screenshots and logs and I will take a look.
 
Name: ODZTools / Logger

Description: Attempting to work with the current log system is very limited and makes it difficult to track errors and gather data. This allows messages to be logged to separate file that is dated and stored within your server's profile. Once the initialization method has completed, a folder will appear named ODZLogs (by default) and will contain dated .log files.

Repository: GitHub

Includes:
Include the following line in the top init.c of your mission file
C:
#include "ODZTools/Scripts/Logger/Logger.c"

Initialization:
C:
Logger.Init();

Usage:
C:
Logger.Log(LogType.Debug, "This is a debug message!");
Logger.Log(LogType.Info, "This is a info message!");
Logger.Log(LogType.Warning, "This is a warning message!");
Logger.Log(LogType.Error, "This is a error message!");

License:
Feel free to use this script wherever you want for whatever you want. Just give credit where credit is due.

Thank you!
 
  • Like
Reactions: Pwn
Back
Top