Mergifyio / daiquiri

Python library to easily setup basic logging functionality
Apache License 2.0
333 stars 25 forks source link

string configuration shortcuts #18

Closed ghost closed 7 years ago

ghost commented 7 years ago

This is a first attempt at what implementing #15 might look like. Any and all feedback is welcome.

ghost commented 7 years ago

On further consideration I think you're correct, there's nothing to gain by using dicts for config - if there are users who want to user JSON-like data for configuration, they most likely are also talking directly to the logging module. Accordingly I've removed that option and updated the docs.

While we're on the topic though, should I add a few more basic names to the preconfigured outputs? Something like error.log to create a file with loglevel error and a text formatter, or info.json to create a file with loglevel info and a json formatter? Or anything else you like, really.