Exporting ConsoleAdapter
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
import { Observable } from "@hibas123/utils";
|
||||
import { ConsoleWriter } from "./consolewriter";
|
||||
import { ConsoleAdapter } from "./consolewriter";
|
||||
import inspect from "./inspect";
|
||||
import { Adapter, LoggingTypes, Message, FormatConfig, DefaultFormatConfig, Format, FormatTypes, Colors, FormattedText, FormattedLine } from "./types";
|
||||
|
||||
@ -68,7 +68,7 @@ export class LoggingBase {
|
||||
}
|
||||
|
||||
if (config.console) {
|
||||
this.addAdapter(new ConsoleWriter());
|
||||
this.addAdapter(new ConsoleAdapter());
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -4,7 +4,7 @@ import { Adapter, Message, FormattedLine, TerminalFormats, FormatTypes } from ".
|
||||
|
||||
const browser = typeof window !== "undefined";
|
||||
|
||||
export class ConsoleWriter implements Adapter {
|
||||
export class ConsoleAdapter implements Adapter {
|
||||
init(observable: ObservableInterface<Message>) {
|
||||
observable.subscribe(this.onMessage.bind(this));
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { LoggingBase } from "./base";
|
||||
|
||||
export { ConsoleAdapter } from "./consolewriter";
|
||||
export { LoggingBase, LoggingBaseOptions, removeColors } from "./base";
|
||||
export {
|
||||
Adapter,
|
||||
|
Reference in New Issue
Block a user