UNPKG

applicationinsights

Version:
28 lines (27 loc) 913 B
import * as DataModel from "./DataModel"; export interface FileWriterOptions { append: boolean; deleteOnExit: boolean; sizeLimit: number; renamePolicy: "rolling" | "overwrite" | "stop"; chmod: number; } export declare const homedir: any; export declare class FileWriter implements DataModel.AgentLogger { private _filepath; private _filename; callback: (_err: Error) => void; private _ready; private _options; private static _fullpathsToDelete; private static _listenerAttached; private static DEFAULT_OPTIONS; static isNodeVersionCompatible(): boolean; constructor(_filepath: string, _filename: string, options?: Partial<FileWriterOptions>); log(message: any): void; error(message: any): void; private _appendFile(message); private _writeFile(message); private static _addCloseHandler(); private _shouldRenameFile(callback?); }