UNPKG

nope-js-browser

Version:

NoPE Runtime for the Browser. For nodejs please use nope-js-node

30 lines (29 loc) 991 B
/** * @author Martin Karkowski * @email m.karkowski@zema.de * @create date 2021-05-21 16:44:59 * @modify date 2021-10-19 17:47:56 * @desc [description] */ export declare const CURRENT_DATE: string; export declare const DEFAULT_LOG_LOCATION: string; /** * Generates a Log-File Path based on the given name with the following format: * /logs/{name}_{date}.log * * @export * @param {string} name Name of the File. * @return {string} * @backend **Only in Nodejs available** */ export declare function generateLogfilePath(name: string): string; /** * Function to use a log file instead of the console log. * * @author M.Karkowski * @export * @param {string} [pathToFile=DEFAULT_FILE] Path to the logfile * @param {number} [bufferSize=0] Default Buffer-Size. If > 0 we will write the log with buffering. * @backend **Only in Nodejs available** */ export declare function useLogFile(pathToFile?: string, bufferSize?: number): () => Promise<void>;