clone method
Creates an independent clone of this LogEntry detached from any object pool.
Implementation
LogEntry clone() => LogEntry(
loggerName: loggerName,
origin: origin,
level: level,
message: message,
timestamp: timestamp,
stackFrames:
stackFrames != null ? List<CallbackInfo>.of(stackFrames!) : null,
error: error,
stackTrace: stackTrace,
context: context != null ? Map<String, dynamic>.from(context!) : null,
).._hierarchyDepthCache = _hierarchyDepthCache;