@skypilot/scraper
Version:
Node-based scriptable web scraper
34 lines (33 loc) • 880 B
TypeScript
import { DirectoryLike } from '@skypilot/sugarbowl';
import { JsonValue } from 'type-fest';
import type { Integer } from '@skypilot/common-types';
interface AddOptions {
prefix?: string;
runLevel?: Integer;
}
interface LoggerParams {
logDir?: DirectoryLike;
logFileName?: string | (() => string);
verbose?: boolean;
}
export declare class Logger {
private readonly createdAt;
private log;
private readonly logDir;
private readonly logFileName;
private readonly verbose;
constructor(params?: LoggerParams);
add(message: JsonValue, options?: AddOptions): void;
display(): void;
format(): string;
get(): string[];
getPaths(): {
fileName: string;
fullDirPath: string;
fullFilePath: string;
relativeDirPath: string;
relativeFilePath: string;
};
write(): void;
}
export {};