www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 12482] New: Add a standard logging module

reply d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12482

           Summary: Add a standard logging module
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Phobos
        AssignedTo: nobody puremagic.com
        ReportedBy: jbinero gmail.com



---
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.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 27 2014
next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12482




---
Here is a cool prototype:
https://github.com/Binero/d-log/blob/master/source/logger.d

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 27 2014
prev sibling next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12482


Infiltrator <lt.infiltrator gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |lt.infiltrator gmail.com



PDT ---
I second that.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 27 2014
prev sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12482


Andrej Mitrovic <andrej.mitrovich gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |andrej.mitrovich gmail.com
         Resolution|                            |INVALID



12:53:43 CET ---
It's in the review queue. Let's not file duplicate reports:

http://wiki.dlang.org/Review_Queue

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 29 2014