commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Pogrebnyak (JIRA)" <j...@apache.org>
Subject [jira] Updated: (LOGGING-110) Implement a Level class and a generic log method in Log
Date Fri, 09 May 2008 15:56:55 GMT

     [ https://issues.apache.org/jira/browse/LOGGING-110?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Alexander Pogrebnyak updated LOGGING-110:
-----------------------------------------

    Attachment: TestLogLevel.java
                LogLevel.java

Implementation and a unit test of LogLevel enumeration

> Implement a Level class and a generic log method in Log
> -------------------------------------------------------
>
>                 Key: LOGGING-110
>                 URL: https://issues.apache.org/jira/browse/LOGGING-110
>             Project: Commons Logging
>          Issue Type: New Feature
>            Reporter: Sebastiaan van Erk
>             Fix For: 2.0
>
>         Attachments: LogLevel.java, TestLogLevel.java
>
>
> The Log API does not have a generic log method and there is no generic Level class. Since
the levels which commons logging provides are fixed and since it would not break backwards
compatibiliy I would like to suggest that these are added. To be more specific, I would like
to see the following methods added:
>  void 	log(Level level, Object message)
>            Log a message with the specified log level.
>  void 	log(Level level, Object message, Throwable t)
>            Log a message and exception with the specified log level.
>  boolean isEnabled(Level level)
>            Is the specified logging level currently enabled?
> As an extra feature of the level class one could have string and integer conversions
to and from log levels.
> These features would allow one to use commons logging in more complex situations without
have to rely on specific logging implementations.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message