UNPKG

726 BTypeScriptView Raw
1/**
2 * A logger backed by [pino](https://getpino.io/)
3 *
4 * The default log level is `info`, but you can change it passing a level
5 * string set to one of: `"trace"`, `"debug"`, `"info"`, `"warn"`,
6 * `"error"`, or `"fatal"`.
7 *
8 * ```js
9 * app.log.debug("…so is this");
10 * app.log.trace("Now we're talking");
11 * app.log.info("I thought you should know…");
12 * app.log.warn("Woah there");
13 * app.log.error("ETOOMANYLOGS");
14 * app.log.fatal("Goodbye, cruel world!");
15 * ```
16 */
17import pino from "pino";
18import { Options, LogLevel } from "@probot/pino";
19export declare type GetLogOptions = {
20 level?: LogLevel;
21 logMessageKey?: string;
22} & Options;
23export declare function getLog(options?: GetLogOptions): pino.Logger;