toStringOptions method
Implementation
String toStringOptions(
{bool includeTimestamp = false, bool includeLoggerName = false}) {
final tokens = <String>[];
if (includeTimestamp) {
tokens.add(timestamp.toString());
}
tokens.add(level.toString());
if (includeLoggerName) {
tokens.add('[$loggerName]');
}
tokens.add(message);
return tokens.join(' ');
}