# Interface BaseLogger

interface BaseLogger {
level: LevelWithSilentOrString;
fatal: LogFn;
error: LogFn;
warn: LogFn;
info: LogFn;
debug: LogFn;
trace: LogFn;
silent: LogFn;
}

- Defined in node_modules/pino/pino.d.ts:140

#####
Index

### Properties

level
fatal
error
warn
info
debug
trace
silent

##
Properties

### level

level: LevelWithSilentOrString

Set this property to the desired logging level. In order of priority, available levels are:

- 'fatal'
- 'error'
- 'warn'
- 'info'
- 'debug'
- 'trace'

The logging level is a minimum level. For instance if `logger.level` is `'info'` then all `'fatal'`, `'error'`, `'warn'`, and `'info'` logs will be enabled.

You can pass `'silent'` to disable logging.

- Defined in node_modules/pino/pino.d.ts:156

### fatal

fatal: LogFn

Log at `'fatal'` level the given msg. If the first argument is an object, all its properties will be included in the JSON line. If more args follows `msg`, these will be used to format `msg` using `util.format`.

#### Type Param: T:

the interface of the object being serialized. Default is object.

#### Param: obj:

object to be serialized

#### Param: msg:

the log message to write

#### Param: ...args:

format string values when `msg` is a format string

- Defined in node_modules/pino/pino.d.ts:167

### error

error: LogFn

Log at `'error'` level the given msg. If the first argument is an object, all its properties will be included in the JSON line. If more args follows `msg`, these will be used to format `msg` using `util.format`.

#### Type Param: T:

the interface of the object being serialized. Default is object.

#### Param: obj:

object to be serialized

#### Param: msg:

the log message to write

#### Param: ...args:

format string values when `msg` is a format string

- Defined in node_modules/pino/pino.d.ts:177

### warn

warn: LogFn

Log at `'warn'` level the given msg. If the first argument is an object, all its properties will be included in the JSON line. If more args follows `msg`, these will be used to format `msg` using `util.format`.

#### Type Param: T:

the interface of the object being serialized. Default is object.

#### Param: obj:

object to be serialized

#### Param: msg:

the log message to write

#### Param: ...args:

format string values when `msg` is a format string

- Defined in node_modules/pino/pino.d.ts:187

### info

info: LogFn

Log at `'info'` level the given msg. If the first argument is an object, all its properties will be included in the JSON line. If more args follows `msg`, these will be used to format `msg` using `util.format`.

#### Type Param: T:

the interface of the object being serialized. Default is object.

#### Param: obj:

object to be serialized

#### Param: msg:

the log message to write

#### Param: ...args:

format string values when `msg` is a format string

- Defined in node_modules/pino/pino.d.ts:197

### debug

debug: LogFn

Log at `'debug'` level the given msg. If the first argument is an object, all its properties will be included in the JSON line. If more args follows `msg`, these will be used to format `msg` using `util.format`.

#### Type Param: T:

the interface of the object being serialized. Default is object.

#### Param: obj:

object to be serialized

#### Param: msg:

the log message to write

#### Param: ...args:

format string values when `msg` is a format string

- Defined in node_modules/pino/pino.d.ts:207

### trace

trace: LogFn

Log at `'trace'` level the given msg. If the first argument is an object, all its properties will be included in the JSON line. If more args follows `msg`, these will be used to format `msg` using `util.format`.

#### Type Param: T:

the interface of the object being serialized. Default is object.

#### Param: obj:

object to be serialized

#### Param: msg:

the log message to write

#### Param: ...args:

format string values when `msg` is a format string

- Defined in node_modules/pino/pino.d.ts:217

### silent

silent: LogFn

Noop function.

- Defined in node_modules/pino/pino.d.ts:221