Reference Source
public class | source

LoggerWinston

Extends:

Logger → LoggerWinston

Constructor Summary

Public Constructor
public

constructor(arg_context: string): nothing

Create a Winston Logger instance.

Member Summary

Public Members
public
public

logger: *

Method Summary

Public Methods
public

create_console_transport(arg_transport_cfg: object): winston.transports.Console

Create a console transport for Winston logger.

public

create_file_transport(arg_transport_cfg: object): winston.transports.File

Create a file transport for Winston logger.

public

debug_self(arg_opds: array): nothing

Logger DEBUG implementation.

public

error_self(arg_opds: array): nothing

Logger ERROR implementation.

public

info_self(arg_opds: array): nothing

Logger INFO implementation.

public

warn_self(arg_opds: array): nothing

Logger WARN implementation.

Inherited Summary

From class Logger
public static

format(args: string | array): string

Get formatted trace message.

public
public
public
public
public
public
public
public

uid: *

public

debug(arg_opds: string | array): nothing

Trace DEBUG formatted message.

public

disable_trace(): nothing

Disable traces.

public

enable_trace(): nothing

Enable traces.

public

enter_group(arg_context: string, arg_group: string): nothing

Trace INFO message on "enter trace group".

public

error(arg_opds: string | array): nothing

Trace ERROR formatted message.

public

Get trace flag.

public

Get logger uid.

public

info(arg_opds: string | array): nothing

Trace INFO formatted message.

public

leave_group(arg_context: string, arg_group: string): nothing

Trace INFO message on "leave trace group".

public

separate_level_1(arg_context: string): nothing

Trace INFO trace level 1 separator.

public

separate_level_2(arg_context: string): nothing

Trace INFO trace level 2 separator.

public

separate_level_3(arg_context: string): nothing

Trace INFO trace level 3 separator.

public

set_trace(arg_enabled: boolean): nothing

Set trace flag.

public

Toggle trace flag.

public

warn(arg_opds: string | array): nothing

Trace WARN formatted message.

Public Constructors

public constructor(arg_context: string): nothing source

Create a Winston Logger instance.

Override:

Logger#constructor

Params:

NameTypeAttributeDescription
arg_context string

trace context.

Return:

nothing

Public Members

public is_logger_winston: boolean source

public logger: * source

Public Methods

public create_console_transport(arg_transport_cfg: object): winston.transports.Console source

Create a console transport for Winston logger.

Params:

NameTypeAttributeDescription
arg_transport_cfg object

console transport settings.

Return:

winston.transports.Console

public create_file_transport(arg_transport_cfg: object): winston.transports.File source

Create a file transport for Winston logger.

Params:

NameTypeAttributeDescription
arg_transport_cfg object

file transport settings.

Return:

winston.transports.File

public debug_self(arg_opds: array): nothing source

Logger DEBUG implementation.

Params:

NameTypeAttributeDescription
arg_opds array

log record array.

Return:

nothing

public error_self(arg_opds: array): nothing source

Logger ERROR implementation.

Params:

NameTypeAttributeDescription
arg_opds array

log record array.

Return:

nothing

public info_self(arg_opds: array): nothing source

Logger INFO implementation.

Params:

NameTypeAttributeDescription
arg_opds array

log record array.

Return:

nothing

public warn_self(arg_opds: array): nothing source

Logger WARN implementation.

Params:

NameTypeAttributeDescription
arg_opds array

log record array.

Return:

nothing