Options
All
  • Public
  • Public/Protected
  • All
Menu

This class implements multiple loglevels with different appenders

Hierarchy

  • Logger

Index

Constructors

  • new Logger(module?: string, className?: string): Logger
  • Get the module name and class name while create logger object

    example
    const logger = new Logger('module name', class name');
    

    Parameters

    • Optional module: string

      Module name as an optional

    • Optional className: string

      Class name as an optional

    Returns Logger

Properties

className: string
module: string
config: LoggerConfig = ...

Methods

  • example
    console.debug('log debug');
    

    Parameters

    • functionName: string

      Log function message

    • message: string

      Log message

    • Optional data: ContactLog | AgentLog | SkillLog

      Log data object

    Returns void

  • example
    const logMessage: LogMessage
    doLog(0, logMessage);

    Parameters

    Returns void

  • example
    console.error('log error');
    

    Parameters

    • functionName: string

      Log function message

    • message: string

      Log message

    • Optional data: ContactLog | AgentLog | SkillLog

      Log data object

    Returns void

  • example
    console.fatal('log fatal');
    

    Parameters

    • functionName: string

      Log function message

    • message: string

      Log message

    • Optional data: ContactLog | AgentLog | SkillLog

      Log data object

    Returns void

  • example
    console.info('log info');
    

    Parameters

    • functionName: string

      Log function message

    • message: string

      Log message

    • Optional data: ContactLog | AgentLog | SkillLog

      Log data object

    Returns void

  • example
    console.trace('log info');
    

    Parameters

    • functionName: string

      Log function message

    • message: string

      Log message

    • Optional data: ContactLog | AgentLog | SkillLog

      Log data object

    Returns void

  • example
    console.warn('log warn');
    

    Parameters

    • functionName: string

      Log function message

    • message: string

      Log message

    • Optional data: ContactLog | AgentLog | SkillLog

      Log data object

    Returns void

  • Set the multiple appenders and log level in Logger

    example
    setConfig({appenders:[ConsoleLogAppender], level: 0});
    

    Parameters

    Returns void

Generated using TypeDoc