Options
All
  • Public
  • Public/Protected
  • All
Menu

Class LogService

Hierarchy

  • LogService

Index

Constructors

Methods

Constructors

Methods

  • debug(msg: any, caller?: any, executor?: any): void
  • 输出一段调试信息,当consts常量中的DEBUG为true的时候才会输出

    Parameters

    • msg: any

      调试信息内容

    • caller: any = undefined

      调用对象

    • executor: any = undefined

    Returns void

  • error(err: any, throwError?: boolean, caller?: any, executor?: any): void
  • 输出一个错误日志

    Parameters

    • err: any

      具体错误内容

    • throwError: boolean = true

      是否抛出异常,默认是

    • caller: any = undefined

      调用对象

    • executor: any = undefined

    Returns void

  • log(msg: any, caller?: any, executor?: any): void
  • 输出一段日志信息

    Parameters

    • msg: any

      日志内容

    • caller: any = undefined

      调用对象

    • executor: any = undefined

    Returns void

  • warn(msg: any, caller?: any, executor?: any): void
  • 输出一段警告消息

    Parameters

    • msg: any

      警告消息内容

    • caller: any = undefined

      调用对象

    • executor: any = undefined

    Returns void

Generated using TypeDoc