Reference Source
public class | source

StreamLogger

Extends:

../node_modules/devapt-core-common/dist/js/loggers/logger.js~Logger → StreamLogger

Constructor Summary

Public Constructor
public

constructor(arg_stream: Bacon.Bus, arg_enabled: boolean): nothing

Create a Stream Logger instance.

Member Summary

Public Members
public
public

stream: *

Method Summary

Public Methods
public

convert_array_to_object(arg_log_array: array): object

Convert log array to log object.

public

debug_self(arg_opds: array): nothing

Logger DEBUG implementation.

public

error_self(arg_opds: array): nothing

Logger ERROR implementation.

public

get_stream(): Stream

Get logs stream.

public

info_self(arg_opds: array): nothing

Logger INFO implementation.

public

warn_self(arg_opds: array): nothing

Logger WARN implementation.

Public Constructors

public constructor(arg_stream: Bacon.Bus, arg_enabled: boolean): nothing source

Create a Stream Logger instance.

Params:

NameTypeAttributeDescription
arg_stream Bacon.Bus

stream to send trace.

arg_enabled boolean

trace is enabled ?

Return:

nothing

Public Members

public is_stream_console: boolean source

public stream: * source

Public Methods

public convert_array_to_object(arg_log_array: array): object source

Convert log array to log object.

Params:

NameTypeAttributeDescription
arg_log_array array

log record array (length= )

Return:

object

log record object { ts, level, source, context, instance, group, action, text }

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 get_stream(): Stream source

Get logs stream.

Return:

Stream

logs stream.

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