ConsoleTransport

Hierarchy

LogTransport

  • LogTransport

    ConsoleTransport

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

+ new ConsoleTransport(level: LogLevel, config: LogTransportConfig, format?: any): ConsoleTransport

Overrides LogTransport.constructor

Creates a ConsoleTransport. Creates a ConsoleTransport.

Parameters:

NameTypeDescription
levelLogLevelLevel for which priority logging will only be done(less than or equal to this level).
configLogTransportConfigLogTransportConfig instance.
format?anyOptional Winston's formatting.

Returns: ConsoleTransport

Properties

client

client: winston.Logger

Overrides LogTransport.client


Readonly config

config: LogTransportConfig

Overrides LogTransport.config


Readonly level

level: LogLevel

Implementation of LogTransport.level

Overrides LogTransport.level


logger

logger: Logger

Implementation of LogTransport.logger

Overrides LogTransport.logger

Methods

alert

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

Implementation of LogTransport

Inherited from RFC5424LoggingMixin.alert

Overrides void

Parameters:

NameType
entrystring | LogEntry
...argsany[]

Returns: void


crit

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

Implementation of LogTransport

Inherited from RFC5424LoggingMixin.crit

Overrides void

Parameters:

NameType
entrystring | LogEntry
...argsany[]

Returns: void


debug

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

Implementation of LogTransport

Inherited from RFC5424LoggingMixin.debug

Overrides void

Parameters:

NameType
entrystring | LogEntry
...argsany[]

Returns: void


emerg

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

Implementation of LogTransport

Inherited from RFC5424LoggingMixin.emerg

Overrides void

Parameters:

NameType
entrystring | LogEntry
...argsany[]

Returns: void


error

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

Implementation of LogTransport

Inherited from RFC5424LoggingMixin.error

Overrides void

Parameters:

NameType
entrystring | LogEntry
...argsany[]

Returns: void


formatEntry

formatEntry(entry: winston.LogEntry | LogEntry): string

Formats log entry.

Parameters:

NameTypeDescription
entrywinston.LogEntry | LogEntryWinston's or Eveble's Log instance.

Returns: string

String representation of the provided log.


info

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

Implementation of LogTransport

Inherited from RFC5424LoggingMixin.info

Overrides void

Parameters:

NameType
entrystring | LogEntry
...argsany[]

Returns: void


initialize

initialize(): void

Overrides LogTransport.initialize

Initializes ConsoleTransport.

Returns: void


isLoggable

isLoggable(level: LogLevel): boolean

Implementation of LogTransport

Inherited from LogTransport.isLoggable

Overrides void

Parameters:

NameType
levelLogLevel

Returns: boolean


log

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

Implementation of LogTransport

Inherited from LogTransport.log

Overrides RFC5424LoggingMixin.log

Parameters:

NameType
levelLogLevel
entrystring | LogEntry
...argsany[]

Returns: void


notice

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

Implementation of LogTransport

Inherited from RFC5424LoggingMixin.notice

Overrides void

Parameters:

NameType
entrystring | LogEntry
...argsany[]

Returns: void


warning

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

Implementation of LogTransport

Inherited from RFC5424LoggingMixin.warning

Overrides void

Parameters:

NameType
entrystring | LogEntry
...argsany[]

Returns: void