LogsServer
Extends:
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 |
server_host: * |
|
public |
server_http: * |
|
public |
server_port: * |
|
public |
|
|
public |
server_type: * |
|
public |
serverio: * |
|
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#constructorReturn:
nothing |
Public Methods
public process_log(arg_ts: string, arg_level: string, arg_source: string, arg_text: string): nothing source
Process one log record.
Return:
nothing |
public process_logs(arg_logs_record: *): nothing source
Process logs records.
{object} arg_logs_record - logs record { ts, level, source, logs }.
Params:
Name | Type | Attribute | Description |
arg_logs_record | * |
Return:
nothing |
public receive_logs(arg_msg: DistributedLogs): nothing source
Process received logs message.
Params:
Name | Type | Attribute | Description |
arg_msg | DistributedLogs | logs message instance. |
Return:
nothing |