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:183


LogLevelString

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

Source

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


Serializer()

Serializer: (input) => any

Parameters

ParameterType
inputany

Returns

any

Source

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

Variables

DEBUG

const DEBUG: number

Source

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


ERROR

const ERROR: number

Source

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


FATAL

const FATAL: number

Source

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


INFO

const INFO: number

Source

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


TRACE

const TRACE: number

Source

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


WARN

const WARN: number

Source

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


levelFromName

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

Source

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


nameFromLevel

const nameFromLevel: object

Index signature

[level: number]: string

Source

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


stdSerializers

const stdSerializers: StdSerializers

Source

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

Functions

createLogger()

createLogger(options): Logger

Parameters

ParameterType
optionsLoggerOptions

Returns

Logger

Source

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


resolveLevel()

resolveLevel(value): number

Parameters

ParameterType
valueLogLevel

Returns

number

Source

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


safeCycles()

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

Returns

Function

Parameters
ParameterType
keystring
valueany
Returns

any

Source

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