Reference Source
public class | source

Logger

Static Method Summary

Static Public Methods
public static

format(args: string | array): string

Get formatted trace message.

Constructor Summary

Public Constructor
public

constructor(arg_context: string): nothing

Create a Logger instance.

Member Summary

Public Members
public
public
public
public
public
public
public
public

uid: *

Method Summary

Public Methods
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.

Static Public Methods

public static format(args: string | array): string source

Get formatted trace message.

Params:

NameTypeAttributeDescription
args string | array

messages to format.

Return:

string

formatted trace message.

Public Constructors

public constructor(arg_context: string): nothing source

Create a Logger instance.

Params:

NameTypeAttributeDescription
arg_context string

trace context.

Return:

nothing

Public Members

public is_logger: boolean source

public is_trace_enabled: boolean source

public is_trace_enabled_bt: boolean source

public is_trace_enabled_debug: boolean source

public is_trace_enabled_error: boolean source

public is_trace_enabled_info: boolean source

public is_trace_enabled_warn: boolean source

public uid: * source

Public Methods

public debug(arg_opds: string | array): nothing source

Trace DEBUG formatted message.

Params:

NameTypeAttributeDescription
arg_opds string | array

variadic messages to format.

Return:

nothing

public disable_trace(): nothing source

Disable traces.

Return:

nothing

public enable_trace(): nothing source

Enable traces.

Return:

nothing

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

Trace INFO message on "enter trace group".

Params:

NameTypeAttributeDescription
arg_context string

trace context.

arg_group string

trace group name.

Return:

nothing

public error(arg_opds: string | array): nothing source

Trace ERROR formatted message.

Params:

NameTypeAttributeDescription
arg_opds string | array

variadic messages to format.

Return:

nothing

public get_trace(): boolean source

Get trace flag.

Return:

boolean

public get_uid(): string source

Get logger uid.

Return:

string

public info(arg_opds: string | array): nothing source

Trace INFO formatted message.

Params:

NameTypeAttributeDescription
arg_opds string | array

variadic messages to format.

Return:

nothing

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

Trace INFO message on "leave trace group".

Params:

NameTypeAttributeDescription
arg_context string

trace context.

arg_group string

trace group name.

Return:

nothing

public separate_level_1(arg_context: string): nothing source

Trace INFO trace level 1 separator.

Params:

NameTypeAttributeDescription
arg_context string

trace context.

Return:

nothing

public separate_level_2(arg_context: string): nothing source

Trace INFO trace level 2 separator.

Params:

NameTypeAttributeDescription
arg_context string

trace context.

Return:

nothing

public separate_level_3(arg_context: string): nothing source

Trace INFO trace level 3 separator.

Params:

NameTypeAttributeDescription
arg_context string

trace context.

Return:

nothing

public set_trace(arg_enabled: boolean): nothing source

Set trace flag.

Params:

NameTypeAttributeDescription
arg_enabled boolean

trace flag.

Return:

nothing

public toggle_trace(): boolean source

Toggle trace flag.

Return:

boolean

public warn(arg_opds: string | array): nothing source

Trace WARN formatted message.

Params:

NameTypeAttributeDescription
arg_opds string | array

variadic messages to format.

Return:

nothing