Browse Source

Use build in pino.pretty definitions

update-deps
Alex Mikhalev 7 years ago
parent
commit
c8dd1df615
  1. 2
      server/logging/prettyPrint.ts
  2. 22
      server/types/pino.d.ts

2
server/logging/prettyPrint.ts

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
import chalk from "chalk";
import pretty = require("pino/pretty");
import { pretty } from "pino";
type Level = "default" | 60 | 50 | 40 | 30 | 20 | 10;

22
server/types/pino.d.ts vendored

@ -1,22 +0,0 @@ @@ -1,22 +0,0 @@
declare module "pino/pretty" {
import { Transform } from "stream";
interface Formatter {
(value: any): string;
}
interface PrettyOptions {
timeTransOnly?: boolean;
formatter?: Formatter;
levelFirst?: boolean;
messageKey?: string;
forceColor?: boolean;
}
interface Pretty {
(opts: PrettyOptions): Transform;
}
const pretty: Pretty;
export = pretty;
}
Loading…
Cancel
Save