subLogger method
Create a sub-logger with an additional tag. The tag will be appended
to the base tag. For instance logger.subLogger("Streaming")
, when called
on a default logger instance, would result in a tag of
LaunchDarkly.Streaming
. This is primarily intended to structure the
log messages emitted by the SDK.
Implementation
LDLogger subLogger(String subTag) {
return LDLogger(adapter: _adapter, level: level, logTag: '$logTag.$subTag');
}