Bug 12482 – Add a standard logging module

Status
RESOLVED
Resolution
INVALID
Severity
enhancement
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-03-27T13:54:00Z
Last change time
2014-03-29T04:53:43Z
Assigned to
nobody
Creator
jbinero

Comments

Comment #0 by jbinero — 2014-03-27T13:54:46Z
There should be some kind of logging utility part of Phobos. I know there used to be one and it has been removed, but it doesn't have to be as complex as that one. There should just be an alternative to the standard output which allows you to set a log level and add listeners. I was thinking of maybe a Object Oriented class that basically works as a plugin server, and when you log a message to it it'll call all its listeners (listening to that log level) which then log the message. This'd provide a minimal structure, easy to maintain, yet very flexible / expandable and easy in use.
Comment #1 by jbinero — 2014-03-27T15:05:47Z
Comment #2 by lt.infiltrator — 2014-03-27T15:10:01Z
I second that.
Comment #3 by andrej.mitrovich — 2014-03-29T04:53:43Z
It's in the review queue. Let's not file duplicate reports: http://wiki.dlang.org/Review_Queue