@terascope/job-components / index / Logger
Namespace: Logger
Index
Classes
Class | Description |
---|---|
RingBuffer | - |
RotatingFileStream | - |
Interfaces
Interface | Description |
---|---|
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
Parameter | Type |
---|---|
input | any |
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
Parameter | Type |
---|---|
options | LoggerOptions |
Returns
Source
packages/types/dist/src/logger.d.ts:191
resolveLevel()
resolveLevel(
value
):number
Parameters
Parameter | Type |
---|---|
value | LogLevel |
Returns
number
Source
packages/types/dist/src/logger.d.ts:193
safeCycles()
safeCycles(): (
key
,value
) =>any
Returns
Function
Parameters
Parameter | Type |
---|---|
key | string |
value | any |
Returns
any
Source
packages/types/dist/src/logger.d.ts:192