Removing all Node specific stuff from NodeLogging.

This commit is contained in:
Fabian
2019-03-31 23:35:23 -04:00
commit e489a15892
11 changed files with 3971 additions and 0 deletions

27
src/types.ts Normal file
View File

@ -0,0 +1,27 @@
import { ObservableInterface } from "@hibas123/utils";
export enum LoggingTypes {
Log,
Warning,
Error,
Debug
}
export interface Message {
type: LoggingTypes;
name?: string;
text: {
raw: string[],
formatted: string[]
};
date: Date;
file: string;
customColors?: string;
}
export interface Adapter {
init(observable: ObservableInterface<Message>, name?: string): void | Promise<void>;
flush(sync: true): void;
flush(sync: false): void | Promise<void>;
}