athena-framework / athena

An ecosystem of reusable, independent components
https://athenaframework.org
MIT License
211 stars 17 forks source link

Better logging #13

Closed Blacksmoke16 closed 5 years ago

Blacksmoke16 commented 5 years ago

Currently Athena does not log incoming requests, non handled errors that happened (500s that otherwise are just swallowed), etc.

Ideally these should be logged to a file, and optionally STDOUT (if in development env) in some standardized way so that the developer could see whats wrong, but user would not get any insight to the issue. Could utilize IO::MultiWriter for this, possibly also some configuration via the config file?

The format should be configurable, probably using a Logger.formatter override.

Some way to rotate the log files?

Blacksmoke16 commented 5 years ago

After some additional thought here is the current plan:

Blacksmoke16 commented 5 years ago

Basically modeling this off of monolog.

Blacksmoke16 commented 5 years ago

This will be fixed via an implementation of Crylog once I get things fledged out a bit more.