Class Logger
The logger base class. Provides the format for console logs.
Inherited Members
Namespace: IPA.Logging
Assembly: IPA.Loader.dll
Syntax
public abstract class Logger
Properties
| Improve this Doc View SourceLogFormat
The standard format for log messages.
Declaration
public static string LogFormat { get; protected set; }
Property Value
Type | Description |
---|---|
System.String | the format for the standard loggers to print in |
Methods
| Improve this Doc View SourceCritical(Exception)
Sends an exception as a critical message.
Equivalent to Log(Level.Critical, e);
Declaration
public virtual void Critical(Exception e)
Parameters
Type | Name | Description |
---|---|---|
System.Exception | e | the exception to log |
See Also
| Improve this Doc View SourceCritical(String)
Sends a critical message.
Equivalent to Log(Level.Critical, message);
Declaration
public virtual void Critical(string message)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | the message to log |
See Also
| Improve this Doc View SourceDebug(Exception)
Sends an exception as a debug message.
Equivalent to Log(Level.Debug, e);
Declaration
public virtual void Debug(Exception e)
Parameters
Type | Name | Description |
---|---|---|
System.Exception | e | the exception to log |
See Also
| Improve this Doc View SourceDebug(String)
Sends a debug message.
Equivalent to Log(Level.Debug, message);
Declaration
public virtual void Debug(string message)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | the message to log |
See Also
| Improve this Doc View SourceError(Exception)
Sends an exception as an error message.
Equivalent to Log(Level.Error, e);
Declaration
public virtual void Error(Exception e)
Parameters
Type | Name | Description |
---|---|---|
System.Exception | e | the exception to log |
See Also
| Improve this Doc View SourceError(String)
Sends an error message.
Equivalent to Log(Level.Error, message);
Declaration
public virtual void Error(string message)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | the message to log |
See Also
| Improve this Doc View SourceInfo(Exception)
Sends an exception as an info message.
Equivalent to Log(Level.Info, e);
Declaration
public virtual void Info(Exception e)
Parameters
Type | Name | Description |
---|---|---|
System.Exception | e | the exception to log |
See Also
| Improve this Doc View SourceInfo(String)
Sends an info message.
Equivalent to Log(Level.Info, message);
Declaration
public virtual void Info(string message)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | the message to log |
See Also
| Improve this Doc View SourceLog(Logger.Level, Exception)
A basic log function taking an exception to log.
Declaration
public virtual void Log(Logger.Level level, Exception e)
Parameters
Type | Name | Description |
---|---|---|
Logger.Level | level | the level of the message |
System.Exception | e | the exception to log |
Log(Logger.Level, String)
A basic log function.
Declaration
public abstract void Log(Logger.Level level, string message)
Parameters
Type | Name | Description |
---|---|---|
Logger.Level | level | the level of the message |
System.String | message | the message to log |
Notice(Exception)
Sends an exception as a notice message.
Equivalent to Log(Level.Notice, e);
Declaration
public virtual void Notice(Exception e)
Parameters
Type | Name | Description |
---|---|---|
System.Exception | e | the exception to log |
See Also
| Improve this Doc View SourceNotice(String)
Sends a notice message.
Equivalent to Log(Level.Notice, message);
Declaration
public virtual void Notice(string message)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | the message to log |
See Also
| Improve this Doc View SourceTrace(Exception)
Sends an exception as a trace message.
Equivalent to Log(Level.Trace, e);
Declaration
public virtual void Trace(Exception e)
Parameters
Type | Name | Description |
---|---|---|
System.Exception | e | the exception to log |
See Also
| Improve this Doc View SourceTrace(String)
Sends a trace message.
Equivalent to Log(Level.Trace, message);
Declaration
public virtual void Trace(string message)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | the message to log |
See Also
| Improve this Doc View SourceWarn(Exception)
Sends an exception as a warning message.
Equivalent to Log(Level.Warning, e);
Declaration
public virtual void Warn(Exception e)
Parameters
Type | Name | Description |
---|---|---|
System.Exception | e | the exception to log |
See Also
| Improve this Doc View SourceWarn(String)
Sends a warning message.
Equivalent to Log(Level.Warning, message);
Declaration
public virtual void Warn(string message)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | the message to log |