Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Dev2Forge/chromologger/llms.txt
Use this file to discover all available pages before exploring further.
Dates is a minimal static utility class in chromologger.utils.dates. It provides a single method, now_date(), which returns the current timestamp used in every log entry written by Logger.
Import
Dates is an internal utility. The Logger class handles timestamp formatting automatically — you do not need to call Dates.now_date() directly in normal usage.Methods
now_date()
datetime.now() — the current local date and time with microsecond precision.
Called internally by Logger.__write() to stamp each log entry at the exact moment it is written. The same method is also used by Logger.__log() when recording entries to the module’s internal error log.
A
datetime object representing the current local time, including microseconds. Equivalent to calling datetime.datetime.now() from the standard library directly.datetime object is embedded in log entries using Python’s default str(datetime) representation:
Logger: