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

loggerTheme to be used in ThemeData to globaly set default logger settings #78

Open Priyantha-Kingslake opened 3 months ago

Priyantha-Kingslake commented 3 months ago

Can a loggerTheme property be implemented in ThemeData so that we may set a global state for the logger?

The default Logger is with PrettyPrinter, implementing this allows us to change the default into our requirement. Set it to SimplePrinter as an example

Bungeefan commented 3 months ago

Hi, I am not quite sure if it's a good idea to create a theme-like class for a logger (especially if it's only for one or two printers). I mean a logger isn't a widget, not even close to one IMO.

Maybe you can refine your idea, so I can better understand what you would expect from such a feature.