log top-level property

Logger get 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;