Reference Source
import LoggerMessagePost from 'devapt-core-common/js/loggers/logger_msg_post.js'
public class | source

LoggerMessagePost

Extends:

Logger → LoggerMessagePost

Constructor Summary

Public Constructor
public

constructor(arg_enabled: boolean, arg_logs_stream: Stream): nothing

Create a Console Logger instance.

Member Summary

Public Members
public
public

Method Summary

Public Methods
public

debug_self(arg_msg: string): nothing

Logger DEBUG implementation.

public

error_self(arg_msg: string): nothing

Logger ERROR implementation.

public

info_self(arg_msg: string): nothing

Logger INFO implementation.

public

process(arg_level: string, arg_text: string): nothing

Logger implementation.

public

warn_self(arg_msg: string): 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_enabled: boolean, arg_logs_stream: Stream): nothing source

Create a Console Logger instance.

Override:

Logger#constructor

Params:

NameTypeAttributeDescription
arg_enabled boolean

traces are enabled.

arg_logs_stream Stream

output logs stream.

Return:

nothing

Public Members

public is_logger_message_post: boolean source

public logs_stream: * source

Public Methods

public debug_self(arg_msg: string): nothing source

Logger DEBUG implementation.

Params:

NameTypeAttributeDescription
arg_msg string

message string.

Return:

nothing

public error_self(arg_msg: string): nothing source

Logger ERROR implementation.

Params:

NameTypeAttributeDescription
arg_msg string

message string.

Return:

nothing

public info_self(arg_msg: string): nothing source

Logger INFO implementation.

Params:

NameTypeAttributeDescription
arg_msg string

message string.

Return:

nothing

public process(arg_level: string, arg_text: string): nothing source

Logger implementation.

Params:

NameTypeAttributeDescription
arg_level string

log level string.

arg_text string

message string.

Return:

nothing

public warn_self(arg_msg: string): nothing source

Logger WARN implementation.

Params:

NameTypeAttributeDescription
arg_msg string

message string.

Return:

nothing