Log<St> constructor

Log<St>(
  1. {Logger? logger,
  2. Level level = Level.INFO,
  3. MessageFormatter<St> formatter = singleLineFormatter}
)

Logs actions to the given Logger, and does not print anything to the console.

Implementation

Log({
  Logger? logger,
  this.level = Level.INFO,
  this.formatter = singleLineFormatter,
}) : logger = logger ?? Logger("Log");