|
@ -53,6 +53,11 @@ namespace IPA.Logging |
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
Info = 2, |
|
|
Info = 2, |
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// A notice. More significant than Info, but less than a warning.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
Notice = 32, |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// A warning message.
|
|
|
/// A warning message.
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
@ -90,6 +95,11 @@ namespace IPA.Logging |
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
InfoOnly = Level.Info, |
|
|
InfoOnly = Level.Info, |
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Only shows notice messages.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
NoticeOnly = Level.Notice, |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// Only shows Warning messages.
|
|
|
/// Only shows Warning messages.
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
@ -115,10 +125,15 @@ namespace IPA.Logging |
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
WarningUp = WarningOnly | ErrorUp, |
|
|
WarningUp = WarningOnly | ErrorUp, |
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Shows all messages Notice and up.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
NoticeUp = WarningUp | NoticeOnly, |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// Shows all messages info and up.
|
|
|
/// Shows all messages info and up.
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
InfoUp = InfoOnly | WarningUp, |
|
|
|
|
|
|
|
|
InfoUp = InfoOnly | NoticeUp, |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// Shows all messages.
|
|
|
/// Shows all messages.
|
|
@ -176,6 +191,22 @@ namespace IPA.Logging |
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
/// <param name="e">the exception to log</param>
|
|
|
/// <param name="e">the exception to log</param>
|
|
|
public virtual void Info(Exception e) => Log(Level.Info, e); |
|
|
public virtual void Info(Exception e) => Log(Level.Info, e); |
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Sends a notice message.
|
|
|
|
|
|
/// Equivalent to Log(Level.Notice, message).
|
|
|
|
|
|
/// <see cref="Log(Level, string)"/>
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="message">the message to log</param>
|
|
|
|
|
|
public virtual void Notice(string message) => Log(Level.Notice, message); |
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Sends an exception as a notice message.
|
|
|
|
|
|
/// Equivalent to Log(Level.Notice, e);
|
|
|
|
|
|
/// <see cref="Log(Level, Exception)"/>
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="e">the exception to log</param>
|
|
|
|
|
|
public virtual void Notice(Exception e) => Log(Level.Notice, e); |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// Sends a warning message.
|
|
|
/// Sends a warning message.
|
|
|