Class: MemoryTransport
A log transport that stores log entries in memory.
Extends
Constructors
Constructor
new MemoryTransport(
config):MemoryTransport
The configuration options for the log transport.
Parameters
config
Returns
MemoryTransport
Inherited from
Properties
config
protectedreadonlyconfig:LogTransportOptions
Inherited from
entries
readonlyentries:LogEntry[] =[]
Methods
clear()
clear():
void
Returns
void
write()
write(
entry):Promise<void>
Writes a log entry using the configured formatter and minimum level.
Parameters
entry
Returns
Promise<void>