currentLogger top-level property
CloudLogger
get
currentLogger
Returns the current CloudLogger.
If called within a context configured with a CloudLogger, the returned CloudLogger will be used.
Otherwise, the returned CloudLogger will simply print log entries, with entries having a LogSeverity different than LogSeverity.defaultSeverity being prefixed as such.
Implementation
CloudLogger get currentLogger =>
Zone.current[_loggerKey] as CloudLogger? ??
const CloudLogger.defaultLogger();