Skip to content

Commit

Permalink
switch to typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
vladmandic committed Dec 17, 2021
1 parent ecc8bb1 commit eee6846
Show file tree
Hide file tree
Showing 9 changed files with 1,195 additions and 673 deletions.
65 changes: 65 additions & 0 deletions dist/pilogger.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
/// <reference types="node" />
import * as fs from 'fs';
export declare type Ring = {
tag: string;
time: string;
msg: string;
};
export declare const ring: Ring[];
export declare type Options = {
dateFormat: string;
ringLength: number;
console: boolean;
timeStamp: boolean;
logFile?: string;
accessFile?: string;
clientFile?: string;
inspect?: any;
};
export declare const options: Options;
export declare type Streams = {
logFile: boolean;
accessFile: boolean;
clientFile: boolean;
logStream: fs.WriteStream | undefined;
accessStream: fs.WriteStream | undefined;
clientStream: fs.WriteStream | undefined;
};
export declare type Tags = 'blank' | 'continue' | 'info' | 'warn' | 'data' | 'error' | 'fatal' | 'assert' | 'timed' | 'state' | 'verbose' | 'debug';
export declare const tags: {
blank: string;
continue: string;
info: string;
warn: string;
data: string;
error: string;
fatal: string;
assert: string;
timed: string;
state: string;
verbose: string;
debug: string;
};
export declare function dateFormat(dt: string): void;
export declare function ringLength(): void;
export declare function print(...messages: any[]): void;
export declare function logFile(file: string): void;
export declare function accessFile(file: string): void;
export declare function clientFile(file: string): void;
export declare function assert(res: any, exp: any, ...messages: string[]): Promise<void>;
export declare function timed(t0: bigint, ...messages: string[]): Promise<void>;
export declare function access(...messages: any[]): Promise<void>;
export declare function client(...messages: any[]): Promise<void>;
export declare function configure(userOptions: Partial<Options>): void;
export declare function header(): void;
export declare function headerJson(): void;
export declare const blank: (...message: string[]) => Promise<void>;
export declare const info: (...message: string[]) => Promise<void>;
export declare const state: (...message: string[]) => Promise<void>;
export declare const data: (...message: string[]) => Promise<void>;
export declare const warn: (...message: string[]) => Promise<void>;
export declare const error: (...message: string[]) => Promise<void>;
export declare const fatal: (...message: string[]) => Promise<void>;
export declare const verbose: (...message: string[]) => Promise<void>;
export declare const debug: (...message: string[]) => Promise<void>;
//# sourceMappingURL=pilogger.d.ts.map
1 change: 1 addition & 0 deletions dist/pilogger.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit eee6846

Please sign in to comment.