Reference Source
public class | source

LogsServer

Extends:

devapt-core-common/dist/js/base/distributed_instance~DistributedInstanceServer → LogsServer

Constructor Summary

Public Constructor
public

constructor(arg_name: string, arg_settings: Immutable.Map, arg_context: string): nothing

Create LogsServer instance to process logs records.

Member Summary

Public Members
public

Method Summary

Public Methods
public

build_server(): nothing

Build server.

public

process_log(arg_ts: string, arg_level: string, arg_source: string, arg_text: string): nothing

Process one log record.

public

process_logs(arg_logs_record: *): nothing

Process logs records.

public

receive_logs(arg_msg: DistributedLogs): nothing

Process received logs message.

Inherited Summary

From class Server
public
public
public
public

server: *

public
public
public
public
public
public
public
public
public

build_server(): nothing

Build private server instance.

public

disable(): nothing

Disable server (stop it).

public

enable(): nothing

Enable server (start it).

public

get_security_settings(): Immutable.Map

Get security settings from server or runtime.

public

Get security settings object into the server.

public

get_topology_info(arg_deep: boolean, arg_visited: object): object

Get topology item informations.

public

load(): nothing

Load server settings.

public

use_service_on_loading(arg_application: Application, arg_service: Service, arg_app_svc_cfg: object): nothing

Add a service to use before or after security check.

Public Constructors

public constructor(arg_name: string, arg_settings: Immutable.Map, arg_context: string): nothing source

Create LogsServer instance to process logs records.

Override:

Server#constructor

Params:

NameTypeAttributeDescription
arg_name string

server instance name

arg_settings Immutable.Map

server instance settings

arg_context string

logging context

Return:

nothing

Public Members

public is_logs_server: boolean source

Public Methods

public build_server(): nothing source

Build server.

Override:

Server#build_server

Return:

nothing

public process_log(arg_ts: string, arg_level: string, arg_source: string, arg_text: string): nothing source

Process one log record.

Params:

NameTypeAttributeDescription
arg_ts string

log timestamp.

arg_level string

log level.

arg_source string

log source.

arg_text string

log text.

Return:

nothing

public process_logs(arg_logs_record: *): nothing source

Process logs records.

{object} arg_logs_record - logs record { ts, level, source, logs }.

Params:

NameTypeAttributeDescription
arg_logs_record *

Return:

nothing

public receive_logs(arg_msg: DistributedLogs): nothing source

Process received logs message.

Params:

NameTypeAttributeDescription
arg_msg DistributedLogs

logs message instance.

Return:

nothing