-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ecc8bb1
commit eee6846
Showing
9 changed files
with
1,195 additions
and
673 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.