the file to log to, if empty, logs to console
perform writes synchronously (similar to console.log)
perform a fsyncSync every time a write is completed
ensure directory for dest file exists when true (default false)
the minimum length of the internal buffer that is required to be full before flushing
Get logging level
Get logging level
Get silent mode
Log debug
Log error
Log fatal
Log info
Log trace
Log warn
A Logger class for logging messages in the Hiero JavaScript SDK. This class provides a flexible logging mechanism that can log messages to various outputs, including the console and log files. It supports different log levels (e.g., trace, debug, info, warn, error, fatal) and allows for configuration of logging behavior, such as synchronous writes and file management.
The Logger can be initialized with a specific log level, a log file path, and options for synchronous writes and file synchronization. It also provides methods to change the logging level and to enable or disable silent mode, which suppresses all log messages.