UNPKG

774 BTypeScriptView Raw
1import { Debugger } from 'debug';
2declare type OutputLoggingHandler = (message: string, ...args: any[]) => void;
3export interface OutputLogger extends OutputLoggingHandler {
4 readonly label: string;
5 info: OutputLoggingHandler;
6 step(nextStep?: string): OutputLogger;
7 sibling(name: string): OutputLogger;
8}
9export declare function createLogger(label: string, verbose?: string | Debugger, initialStep?: string, infoDebugger?: Debugger): OutputLogger;
10/**
11 * The `GitLogger` is used by the main `SimpleGit` runner to handle logging
12 * any warnings or errors.
13 */
14export declare class GitLogger {
15 private _out;
16 error: OutputLoggingHandler;
17 warn: OutputLoggingHandler;
18 constructor(_out?: Debugger);
19 silent(silence?: boolean): void;
20}
21export {};