Search Results for

    Show / Hide Table of Contents

    Class Logger

    日志

    Inheritance
    System.Object
    Logger
    Namespace: cqhttp.Cyan.Utils
    Assembly: cqhttp.Cyan.dll
    Syntax
    public class Logger : object

    Fields

    | Improve this Doc View Source

    log_level

    设置日志记录等级

    Declaration
    public Verbosity log_level
    Field Value
    Type Description
    Verbosity
    | Improve this Doc View Source

    log_type

    日志输出方式

    Declaration
    public LogType log_type
    Field Value
    Type Description
    LogType

    Methods

    | Improve this Doc View Source

    Debug(String)

    Declaration
    public void Debug(string message)
    Parameters
    Type Name Description
    System.String message
    | Improve this Doc View Source

    Error(String)

    Declaration
    public void Error(string message)
    Parameters
    Type Name Description
    System.String message
    | Improve this Doc View Source

    Fatal(String)

    Declaration
    public void Fatal(string message)
    Parameters
    Type Name Description
    System.String message
    | Improve this Doc View Source

    GetLogger(String)

    获取日志对象

    Declaration
    public static Logger GetLogger(string name)
    Parameters
    Type Name Description
    System.String name
    Returns
    Type Description
    Logger
    | Improve this Doc View Source

    Info(String)

    Declaration
    public void Info(string message)
    Parameters
    Type Name Description
    System.String message
    | Improve this Doc View Source

    Warn(String)

    Declaration
    public void Warn(string message)
    Parameters
    Type Name Description
    System.String message

    Events

    | Improve this Doc View Source

    LogEvent

    日志记录事件

    Declaration
    public static event Logger.LogAction LogEvent
    Event Type
    Type Description
    Logger.LogAction
    • Improve this Doc
    • View Source
    ☀
    ☾