Search Results for

    Show / Hide Table of Contents

    Class Logger

    Inheritance
    Object
    Logger
    Implements
    IDisposable
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: RageCoop.Core
    Assembly: RageCoop.Core.dll
    Syntax
    public class Logger : IDisposable

    Fields

    LogLevel

    0:Trace, 1:Debug, 2:Info, 3:Warning, 4:Error

    Declaration
    public int LogLevel
    Field Value
    Type Description
    Int32

    LogPath

    Path to log file.

    Declaration
    public string LogPath
    Field Value
    Type Description
    String

    UseConsole

    Whether to flush messages to console instead of log file

    Declaration
    public bool UseConsole
    Field Value
    Type Description
    Boolean

    Properties

    Name

    Name of this logger

    Declaration
    public string Name { get; set; }
    Property Value
    Type Description
    String

    Methods

    Debug(String)

    Declaration
    public void Debug(string message)
    Parameters
    Type Name Description
    String message

    Dispose()

    Stop backdround thread and flush all pending messages.

    Declaration
    public void Dispose()

    Error(Exception)

    Declaration
    public void Error(Exception ex)
    Parameters
    Type Name Description
    Exception ex

    Error(String)

    Declaration
    public void Error(string message)
    Parameters
    Type Name Description
    String message

    Error(String, Exception)

    Declaration
    public void Error(string message, Exception error)
    Parameters
    Type Name Description
    String message
    Exception error

    Flush()

    Declaration
    public void Flush()

    Info(String)

    Declaration
    public void Info(string message)
    Parameters
    Type Name Description
    String message

    Trace(String)

    Declaration
    public void Trace(string message)
    Parameters
    Type Name Description
    String message

    Warning(String)

    Declaration
    public void Warning(string message)
    Parameters
    Type Name Description
    String message

    Implements

    System.IDisposable
    In This Article
    Back to top Generated by DocFX