Define LOG

Define Documentation

LOG(level, ...)

Prints logging message into stderr and a file specified with --log option.

Prints logging message regarding validation into stderr and a file specified with --valid-log option.

Example usage: LOG(info, "[data] Vocab size: {}", vocabSize)

A good practice is to put [namespace] at the beginning of the message.

The message is automatically preceded by “[valid] “.

Parameters
  • level: Logging level: trace, debug, info, warn, error, critical

  • ...: Message text and variables

See