SourceHorizon / logger

Small, easy to use and extensible logger which prints beautiful logs.
https://pub.dev/packages/logger
MIT License
197 stars 33 forks source link

Can you support custom rules for discarding stacktrace lines? #52

Closed fingerart closed 8 months ago

Bungeefan commented 8 months ago

Hi, this should already be possible with #13. Additionally, next time please state your question in the description, not in the issue title, thanks!

fingerart commented 8 months ago

Sorry, I didn't notice the updated features. Would it be more flexible to use regular expressions? https://github.com/SourceHorizon/logger/blob/main/lib/src/printers/pretty_printer.dart#L290

Bungeefan commented 8 months ago

No problem. For sure, but that could also result in slower logs as the checks can be more expensive, depending on the regex.