-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature: Adding LogLevel to Lumberdash #80
base: master
Are you sure you want to change the base?
Feature: Adding LogLevel to Lumberdash #80
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the adding the feature. 👍
Please also update the main Lumberdash and plugins versions with a minor increment.
lumberdash/lib/src/lumberdash.dart
Outdated
putLumberdashToWork({required List<LumberdashClient> withClients}) { | ||
_lumberdashClients = withClients; | ||
withClients.forEach((client) {_lumberdashClients.forEach((_, logLevelClients) {logLevelClients.add(client);});}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you multi line format this for each?
lumberdash/lib/src/lumberdash.dart
Outdated
/// [LumberdashClient] to a List of LogLevels. Only these LogLevels | ||
/// are used for logging to the LumberdashClient. | ||
putLumberdashToWorkByLogLevel({required Map<LumberdashClient, List<LogLevel>> withClients}) { | ||
withClients.forEach((keyLC, logLevelClients) {logLevelClients.forEach((element) {_lumberdashClients[element]?.add(keyLC);});}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Format
lumberdash/lib/src/lumberdash.dart
Outdated
String logMessage( | ||
String message, { | ||
Map<String, String>? extras, | ||
List<Type> exceptFor = const [], | ||
}) { | ||
_filterOutClientsAndLog(exceptFor, (c) => c.logMessage(message, extras)); | ||
_filterOutClientsAndLog(exceptFor, (c) => c.logMessage(message, extras), LogLevel.message); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
format
_filterOutClientsAndLog(exceptFor, (c) => c.logMessage(message, extras), LogLevel.message,);
No description provided.