LogTransport

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

+ new LogTransport(level: LogLevel, config?: LogTransportConfig): LogTransport

Creates a LogTransport. Creates a LogTransport.

Parameters:

NameTypeDescription
levelLogLevelLevel for which logging will only allowed(less than or equal to this level).
config?LogTransportConfigLogTransportConfig instance.

Returns: LogTransport

Properties

client

client: any


Optional Readonly config

config? : LogTransportConfig


Readonly level

level: LogLevel


logger

logger: Logger

Methods

alert

alert(entry: string | LogEntry, ...args: any[]): void

Inherited from RFC5424LoggingMixin.alert

Overrides void

Parameters:

NameType
entrystring | LogEntry
...argsany[]

Returns: void


crit

crit(entry: string | LogEntry, ...args: any[]): void

Inherited from RFC5424LoggingMixin.crit

Overrides void

Parameters:

NameType
entrystring | LogEntry
...argsany[]

Returns: void


debug

debug(entry: string | LogEntry, ...args: any[]): void

Inherited from RFC5424LoggingMixin.debug

Overrides void

Parameters:

NameType
entrystring | LogEntry
...argsany[]

Returns: void


emerg

emerg(entry: string | LogEntry, ...args: any[]): void

Inherited from RFC5424LoggingMixin.emerg

Overrides void

Parameters:

NameType
entrystring | LogEntry
...argsany[]

Returns: void


error

error(entry: string | LogEntry, ...args: any[]): void

Inherited from RFC5424LoggingMixin.error

Overrides void

Parameters:

NameType
entrystring | LogEntry
...argsany[]

Returns: void


info

info(entry: string | LogEntry, ...args: any[]): void

Inherited from RFC5424LoggingMixin.info

Overrides void

Parameters:

NameType
entrystring | LogEntry
...argsany[]

Returns: void


initialize

initialize(): void

Initializes LogTransport.

Returns: void


isLoggable

isLoggable(level: LogLevel): boolean

Evaluates if actual logged level is loggable on transport.

Parameters:

NameTypeDescription
levelLogLevelLog's level name.

Returns: boolean

Returns true if log is loggable on transport, else false.


log

log(level: LogLevel, entry: string | LogEntry, ...args: any[]): void

Overrides RFC5424LoggingMixin.log

Logs entry with level.

Parameters:

NameTypeDescription
levelLogLevelLogging level for entry.
entrystring | LogEntryLogging entry as a string or implementation of LogEntry instance.
...argsany[]Any other arguments that will be attached to log entry.

Returns: void


notice

notice(entry: string | LogEntry, ...args: any[]): void

Inherited from RFC5424LoggingMixin.notice

Overrides void

Parameters:

NameType
entrystring | LogEntry
...argsany[]

Returns: void


warning

warning(entry: string | LogEntry, ...args: any[]): void

Inherited from RFC5424LoggingMixin.warning

Overrides void

Parameters:

NameType
entrystring | LogEntry
...argsany[]

Returns: void