import { default } from "https://deno.land/x/powerlog@0.1.0/lib/Powerlog.ts";
Constructors
new
default(options: TPowerlogOperions<Levels>)Avoid using this method yourself, this will not add typings to the level methods created by Powerlog.
Methods
private
_push(level: number,
message: string,
args: unknown[],
Push each transport into the log queue.
unsuse(...transports: ITransport<Levels>[])
Remove transports from this instance.
Note that this will also dispose of the transports.
Static Methods
get<Levels>(options: TPowerlogOperions<Levels>): Powerlog<Levels> & TLevelMethods<Levels>
This is a static method used to create a new
Powerlog instance. It is most recommended to use
this method instead of initiating a new instance of
Powerlog yourself. This is because the powerlog
instance adds some extra function properties to
itself that aren't typed. Using
Powerlog.get(options)
those function properties
will be typed.