-
Notifications
You must be signed in to change notification settings - Fork 0
API Reference
Thev2Andy edited this page Jan 19, 2022
·
11 revisions
The class used for writing logs.
• Definition
Calls a log, sent over to the OnLog event, and saves it in a log file. (optional)
public static void Log(string LogMessage, LogType MessageType, bool Timestamp, object LogSender)• Parameters
The message of the log.
The type of the log.
Timestamp this log in the file?
The sender of the log. (Only used when passing the reference to LogEventArgs)
public static event EventHandler<LogEventArgs> OnLog;Invoked on Log() call.
public static bool WriteInLogFile = true;Toggle writing logs to a file, stored next to the caller assembly.
Log Event Arguments holder.
• Definition
The message of the log.
public string LogMessage;• Definition
The type of the log.
public LogType MessageType;• Definition
The time the log was sent at.
public DateTime LogTime;• Definition
Is the log timestamped?
public bool Timestamped;• Definition
The sender of the log.
public object LogSender;Log type enumeration.