-
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, LogType, bool, bool, bool, object)• 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 logs in a file.
public static void SaveLog(object, EventArgs)• Definition
Saves logs in a file.
public static void ClearLog(bool, bool)• Parameters
Delete the log file?
Invoke the OnClear event?
public static event EventHandler<LogEventArgs> OnLog;Invoked on Log() call.
public static event EventHandler<LogEventArgs> OnClear;Invoked on ClearLog() call.
Holds information regarding the current logging session.
• Definition
Initializes the LogSession, Logger and the cache cleaner.
public static void Initialize()• Definition
Clears the log cache, releasing memory and saving the cached logs in the log file.
public static void ClearCache()public static bool Initialized { get; internal set; }Toggle writing logs to a file, stored next to the caller assembly.
public static string LogCache {get; internal set;}Stores all logs called since last clear/autoclear.
public static bool LogExceptions = true;Enable auto-logging of unhandled exceptions?
public static string LogPath;The path to the log file. (Bug Potential!)
public static bool AutoCacheClear = true;Is the log session clearing the log cache? (Unless manually cleared, disabling this will cause memory leaks in managed code.)
public static float CacheClearInterval {get; private set;}The interval between cache clear calls.
public static bool LoggingStripped {get; private set;}Is the "-nolog" launch parameter active?
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.