huntlabs / hunt

A refined core library for D programming language. The module has concurrency / collections / event / io / logging / text / serialization and more.
Apache License 2.0
95 stars 15 forks source link

Add syslogging capabilities to hunt.logging #76

Closed Cogitri closed 4 years ago

Cogitri commented 4 years ago

It'd be nice if I could use hunt.logging for both logging to the terminal and to syslog. IMHO it'd be nice if there were _SYSLOG variants in the LogLevel enum (e.g. LogLevel.LOG_DEBUG_SYSLOG) which would log all messages to syslog for you. I'll look into implementing this if you're interested

Heromyth commented 4 years ago

Of course, a new pull request for this is welcomed warmly.

Cogitri commented 4 years ago

FWIW I've switched to the std's std.experimental.logger which has a very nice interface via FileLogger.