Skip to main content

@terascope/job-components / index / Logger

Namespace: Logger

Index

Classes

ClassDescription
RingBuffer-
RotatingFileStream-

Interfaces

InterfaceDescription
LoggerOptions-
RingBufferOptions-
RotatingFileStreamOptions-
Serializers-
StdSerializers-
Stream-

Type Aliases

LogLevel

LogLevel: LogLevelString | number

Source

packages/types/dist/src/logger.d.ts:186


LogLevelString

LogLevelString: "trace" | "debug" | "info" | "warn" | "error" | "fatal"

Source

packages/types/dist/src/logger.d.ts:185


Serializer()

Serializer: (input) => any

Parameters

ParameterType
inputany

Returns

any

Source

packages/types/dist/src/logger.d.ts:217

Variables

DEBUG

const DEBUG: number

Source

packages/types/dist/src/logger.d.ts:180


ERROR

const ERROR: number

Source

packages/types/dist/src/logger.d.ts:183


FATAL

const FATAL: number

Source

packages/types/dist/src/logger.d.ts:184


INFO

const INFO: number

Source

packages/types/dist/src/logger.d.ts:181


TRACE

const TRACE: number

Source

packages/types/dist/src/logger.d.ts:179


WARN

const WARN: number

Source

packages/types/dist/src/logger.d.ts:182


levelFromName

const levelFromName: { [name in LogLevelString]: number }

Source

packages/types/dist/src/logger.d.ts:187


nameFromLevel

const nameFromLevel: object

Index signature

[level: number]: string

Source

packages/types/dist/src/logger.d.ts:190


stdSerializers

const stdSerializers: StdSerializers

Source

packages/types/dist/src/logger.d.ts:193

Functions

createLogger()

createLogger(options): Logger

Parameters

ParameterType
optionsLoggerOptions

Returns

Logger

Source

packages/types/dist/src/logger.d.ts:194


resolveLevel()

resolveLevel(value): number

Parameters

ParameterType
valueLogLevel

Returns

number

Source

packages/types/dist/src/logger.d.ts:196


safeCycles()

safeCycles(): (key, value) => any

Returns

Function

Parameters
ParameterType
keystring
valueany
Returns

any

Source

packages/types/dist/src/logger.d.ts:195