probot
Version:
A framework for building GitHub Apps to automate and improve your workflow
24 lines (23 loc) • 767 B
TypeScript
/**
* A logger backed by [pino](https://getpino.io/)
*
* The default log level is `info`, but you can change it passing a level
* string set to one of: `"trace"`, `"debug"`, `"info"`, `"warn"`,
* `"error"`, or `"fatal"`.
*
* ```js
* app.log.debug("…so is this");
* app.log.trace("Now we're talking");
* app.log.info("I thought you should know…");
* app.log.warn("Woah there");
* app.log.error("ETOOMANYLOGS");
* app.log.fatal("Goodbye, cruel world!");
* ```
*/
import { type Logger } from "pino";
import { type Options, type LogLevel } from "@probot/pino";
export type GetLogOptions = {
level?: LogLevel | undefined;
logMessageKey?: string | undefined;
} & Options;
export declare function getLog(options?: GetLogOptions): Promise<Logger>;