-
Notifications
You must be signed in to change notification settings - Fork 0
API Reference
The class used for writing logs.
• Definition
Calls a log, sent over to the OnLog event.
public static void Log(string LogMessage, LogType MessageType, bool SaveLogToFile, bool Timestamp, bool TriggerLogEvent, object LogSender)• Parameters
The message of the log.
The type of the log.
Save this specific log to the log file?
Timestamp this log in the file?
Trigger the OnLog event?
The sender of the log. (Only used when passing the reference to LogEventArgs)
• Definition
Saves the entire log in a file.
public static void SaveLogToFile(object Sender, EventArgs Args)• Parameters
The event sender.
The arguments of the event.
• Definition
Used internally to log unhandled exceptions.
public static void LogExceptions(object Sender, UnhandledExceptionEventArgs ExceptionArgs)• Parameters
The event sender.
The arguments of the unhandled exception event.
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.
public static bool Initialized {get; private set;}Determines if the Logger has been initialized.
public static string EntireLog {get; private set;}Stores all logs, called from the start of the application until now.
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.