log top-level property

Logger log

The log instance for the currently running BuildStep.

Will be null when not running within a build.

Implementation

Logger get log => Zone.current[logKey] as Logger? ?? _default;