Optional
consoleLogging to the console.
Optional
format?: "json" | "messages" | "coloredMessages" | "coloredSimpleMessages"Defines how log entries are serialized.
coloredMessages
Optional
minThe minimum level of log entries written to the console.
information
Optional
fileLogging to the specified file.
Optional
format?: "json" | "messages" | "coloredMessages" | "coloredSimpleMessages"Defines how log entries are serialized.
json
Optional
maxMaximum number of log files to keep.
This can be a string with number of files or number of days with d
suffix.
7d
Optional
maxMaximum file size after which it gets rotated.
This can be a string containing a number with suffix k
for kilobytes, m
for megabytes or g
for gigabytes.
100m
Optional
minThe minimum level of log entries written to the console.
off
Optional
path?: stringThe path to the file where log entries are written.
If minLevel is not off
, then it must be specified explicitly.
An absolute file path.
Optional
globalGlobal data appended to all log entries. Useful for example for environment or server name.
undefined
Optional
maxMaximum logged length of logged string in data
values. Longer strings get truncated.
An integer with minimum 1
.
9007199254740991
(maximum safe integer)
Generated using TypeDoc
Configures logging of app execution. This is used as a part of DappetizerConfigUsingDb.
Example
Sample usage (all properties specified explicitly) within
dappetizer.config.ts
file: