LogTransport
Hierarchy
RFC5424LoggingMixin
↳ LogTransport
Index
Constructors
Properties
Methods
Constructors
constructor
+ new LogTransport(level
: LogLevel, config?
: LogTransportConfig): LogTransport
Creates a LogTransport. Creates a LogTransport.
Parameters:
Name | Type | Description |
---|---|---|
level | LogLevel | Level for which logging will only allowed(less than or equal to this level). |
config? | LogTransportConfig | LogTransportConfig 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:
Name | Type |
---|---|
entry | string | LogEntry |
...args | any[] |
Returns: void
crit
▸ crit(entry
: string | LogEntry, ...args
: any[]): void
Inherited from RFC5424LoggingMixin.crit
Overrides void
Parameters:
Name | Type |
---|---|
entry | string | LogEntry |
...args | any[] |
Returns: void
debug
▸ debug(entry
: string | LogEntry, ...args
: any[]): void
Inherited from RFC5424LoggingMixin.debug
Overrides void
Parameters:
Name | Type |
---|---|
entry | string | LogEntry |
...args | any[] |
Returns: void
emerg
▸ emerg(entry
: string | LogEntry, ...args
: any[]): void
Inherited from RFC5424LoggingMixin.emerg
Overrides void
Parameters:
Name | Type |
---|---|
entry | string | LogEntry |
...args | any[] |
Returns: void
error
▸ error(entry
: string | LogEntry, ...args
: any[]): void
Inherited from RFC5424LoggingMixin.error
Overrides void
Parameters:
Name | Type |
---|---|
entry | string | LogEntry |
...args | any[] |
Returns: void
info
▸ info(entry
: string | LogEntry, ...args
: any[]): void
Inherited from RFC5424LoggingMixin.info
Overrides void
Parameters:
Name | Type |
---|---|
entry | string | LogEntry |
...args | any[] |
Returns: void
initialize
▸ initialize(): void
Initializes LogTransport.
Returns: void
isLoggable
▸ isLoggable(level
: LogLevel): boolean
Evaluates if actual logged level is loggable on transport.
Parameters:
Name | Type | Description |
---|---|---|
level | LogLevel | Log'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:
Name | Type | Description |
---|---|---|
level | LogLevel | Logging level for entry. |
entry | string | LogEntry | Logging entry as a string or implementation of LogEntry instance. |
...args | any[] | 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:
Name | Type |
---|---|
entry | string | LogEntry |
...args | any[] |
Returns: void
warning
▸ warning(entry
: string | LogEntry, ...args
: any[]): void
Inherited from RFC5424LoggingMixin.warning
Overrides void
Parameters:
Name | Type |
---|---|
entry | string | LogEntry |
...args | any[] |
Returns: void