logging
                                
                                
                                
                                    logging copied to clipboard
                            
                            
                            
                        A Dart package for debug and error logging.
Feature request to add a property to `LogRecord` class to indicate, that the `record.message` includes secret data, that should be handled differently / not printed by some listeners to `Logger.root.onRecord`....
**Issue by [sethladd](https://github.com/sethladd)** _Originally opened as dart-lang/sdk#15593_ --- For the logging package, we can use the new environment compile-time constants to help optimize at production time. See also http://blog.sethladd.com/2013/12/compile-time-dead-code-elimination-with.html See...
Level constants still have screaming CAPS such as: static const Level FINEST = const Level('FINEST', 300); Is there any plan to change that (or is this package to be deprecated)...
There is no check that the name property of a new logger is not empty. If Logger('a.b.c.') is created, and then Logger('a.b.c..d') is created, then the recursion up the stack...
https://github.com/dart-lang/logging/blob/575781ef196e4fed4fb737e38fb4b73d62727187/lib/src/logger.dart#L11 https://github.com/dart-lang/logging/blob/575781ef196e4fed4fb737e38fb4b73d62727187/lib/src/logger.dart#L16 ```dart // Obviously below way should be more clear. Logger.hierarchicalLoggingEnabled = true; Logger.recordStackTraceAtLevel = Level.OFF; ```
I have many scenarios where I would like to only turn on a few loggers based and setup custom filtering based on some configuration. For example, I may just want...
I think it could be very useful to provide a print-logger function that can be registered as a listener to the log stream. The current one-liner that's in the example...
**Issue by [seaneagan](https://github.com/seaneagan)** _Originally opened as dart-lang/sdk#12030_ --- The logging package should provide support for converting LogRecords into Strings. In Java's logback these are called Layouts: http://logback.qos.ch/manual/layouts.html For example: class...
eg: ``` log.finest('now: ', now); ``` when printing ``` if (record.error != null) { buffer.write(record.error); } ``` so the problem is i dont know whether it is null or empty...
# Proposal: Enhanced On-Demand Logging We’ve been exploring enhanced logging in Flutter, the IntelliJ plugin and most recently in a separate package and have been encouraged by a bunch of...