thedatahub / Datahub-Factory

Datahub::Factory - Transport metadata between Collection Management Systems and the Datahub
Other
2 stars 4 forks source link

Refurbish logging #6

Closed netsensei closed 7 years ago

netsensei commented 7 years ago

See this discussion.

1. Logging configuration should use this heuristic: if an (optional) config file exists in /etc/dhfactory it should use the configuration from that file, else fallback to inline configuration.

2. Logging should be a separate role class which is leveraged by application classes through inheritance. See Logger.pm in Catmandu on how this is achieved.

netsensei commented 7 years ago

Also: see MooX::Role::Logger.