simc / logger

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

[Feature Request] make `printTime` also append the date. #140

Open 0xNF opened 2 years ago

0xNF commented 2 years ago

the printTime function should also print the current date. This would be useful because I am using this package to write files to disk and would like to know what days an event happened on.

haarts commented 2 years ago

What printer are you using?

It is simple to write your own printer. Have a look here: https://github.com/leisim/logger/blob/master/lib/src/printers/prefix_printer.dart

0xNF commented 2 years ago

Yeah I know it's easy to write my own. I just think I shouldn't have to.

haarts commented 2 years ago

I see merit in your suggestion. Please submit a PR and I'll review it.