diff --git a/types/pino/index.d.ts b/types/pino/index.d.ts index 1e7f954268..f2d511881e 100644 --- a/types/pino/index.d.ts +++ b/types/pino/index.d.ts @@ -397,16 +397,6 @@ declare namespace P { */ levelVal: number; - /** - * Defines a new level on the logger instance. Returns `true` on success and `false` if there was a conflict (level name or number already exists). - * When using this method, the current level of the logger instance does not change. You must adjust the level with the `level` property after - * adding your custom level. - * - * @param name: defines the method name of the new level - * @param lvl: value for the level, e.g. `35` is between `info` and `warn` - * @returns whether level was correctly created or not - */ - addLevel(name: string, lvl: number): boolean; /** * Registers a listener function that is triggered when the level is changed. * Note: When browserified, this functionality will only be available if the `events` module has been required elsewhere diff --git a/types/pino/pino-tests.ts b/types/pino/pino-tests.ts index 267e5414d6..870c01edc4 100644 --- a/types/pino/pino-tests.ts +++ b/types/pino/pino-tests.ts @@ -71,7 +71,6 @@ if (log.levelVal === 30) { console.log('logger level is `info`'); } -log.addLevel('myLevel', 35); log.level = 'myLevel'; log.myLevel('a message');