You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Julien DUMETIER (JIRA)" <ji...@apache.org> on 2007/09/18 14:30:43 UTC
[jira] Created: (CXF-1033) Migrate to another logging solution
rather than java.util.logging
Migrate to another logging solution rather than java.util.logging
-----------------------------------------------------------------
Key: CXF-1033
URL: https://issues.apache.org/jira/browse/CXF-1033
Project: CXF
Issue Type: New Feature
Components: Integration
Affects Versions: 2.0.2
Reporter: Julien DUMETIER
Priority: Minor
The java.util.logging output is hard to redirect to an existing logging solution.
I suggest to use SLF4J or something else.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
Re: [jira] Created: (CXF-1033) Migrate to another logging solution rather than java.util.logging
Posted by Guillaume Nodet <gn...@gmail.com>.
Fun :-) I did not create an alias, promised !
This only confirms my thoughts...
On 9/18/07, Julien DUMETIER (JIRA) <ji...@apache.org> wrote:
>
> Migrate to another logging solution rather than java.util.logging
> -----------------------------------------------------------------
>
> Key: CXF-1033
> URL: https://issues.apache.org/jira/browse/CXF-1033
> Project: CXF
> Issue Type: New Feature
> Components: Integration
> Affects Versions: 2.0.2
> Reporter: Julien DUMETIER
> Priority: Minor
>
>
> The java.util.logging output is hard to redirect to an existing logging
> solution.
> I suggest to use SLF4J or something else.
>
> --
> This message is automatically generated by JIRA.
> -
> You can reply to this email to add a comment to the issue online.
>
>
--
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/
[jira] Commented: (CXF-1033) Migrate to another logging solution
rather than java.util.logging
Posted by "Julien DUMETIER (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-1033?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12528802 ]
Julien DUMETIER commented on CXF-1033:
--------------------------------------
The workaround show an issue on org.apache.common.logging.LogUtils
Here is a working version :
protected static Logger createLogger(Class<?> cls, String name) {
if (loggerClass != null) {
try {
Constructor cns = loggerClass.getConstructor(String.class, String.class);
if (name == null) {
try {
return (Logger) cns.newInstance(cls.getName(), BundleUtils.getBundleName(cls));
} catch (InvocationTargetException ite) {
if(ite.getTargetException() instanceof MissingResourceException) {
return (Logger) cns.newInstance(cls.getName(), null);
} else {
throw ite;
}
}
} else {
return (Logger) cns.newInstance(cls.getName(), BundleUtils.getBundleName(cls, name));
}
} catch (Exception e) {
throw new RuntimeException(e);
}
}
if (name == null) {
try {
return Logger.getLogger(cls.getName(), BundleUtils.getBundleName(cls));
} catch (MissingResourceException rex) {
return Logger.getLogger(cls.getName(), null);
}
} else {
return Logger.getLogger(cls.getName(), BundleUtils.getBundleName(cls, name));
}
}
> Migrate to another logging solution rather than java.util.logging
> -----------------------------------------------------------------
>
> Key: CXF-1033
> URL: https://issues.apache.org/jira/browse/CXF-1033
> Project: CXF
> Issue Type: New Feature
> Components: Integration
> Affects Versions: 2.0.2
> Reporter: Julien DUMETIER
> Assignee: Guillaume Nodet
> Priority: Minor
> Attachments: AbstractDelegatingLogger.java, Log4jLogger.java
>
>
> The java.util.logging output is hard to redirect to an existing logging solution.
> I suggest to use SLF4J or something else.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CXF-1033) Migrate to another logging solution
rather than java.util.logging
Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-1033?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12528521 ]
Guillaume Nodet commented on CXF-1033:
--------------------------------------
This is not a fix, but a workaround.
Sending common/pom.xml
Adding common/src/main/java/org/apache/cxf/common/logging/AbstractDelegatingLogger.java
Adding common/src/main/java/org/apache/cxf/common/logging/Log4jLogger.java
Sending common/src/main/java/org/apache/cxf/common/logging/LogUtils.java
Transmitting file data ....
Committed revision 577021.
> Migrate to another logging solution rather than java.util.logging
> -----------------------------------------------------------------
>
> Key: CXF-1033
> URL: https://issues.apache.org/jira/browse/CXF-1033
> Project: CXF
> Issue Type: New Feature
> Components: Integration
> Affects Versions: 2.0.2
> Reporter: Julien DUMETIER
> Assignee: Guillaume Nodet
> Priority: Minor
> Attachments: AbstractDelegatingLogger.java, Log4jLogger.java
>
>
> The java.util.logging output is hard to redirect to an existing logging solution.
> I suggest to use SLF4J or something else.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (CXF-1033) Migrate to another logging solution
rather than java.util.logging
Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-1033?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Guillaume Nodet updated CXF-1033:
---------------------------------
Attachment: Log4jLogger.java
Implementation of java.util.logging.Logger using log4j
> Migrate to another logging solution rather than java.util.logging
> -----------------------------------------------------------------
>
> Key: CXF-1033
> URL: https://issues.apache.org/jira/browse/CXF-1033
> Project: CXF
> Issue Type: New Feature
> Components: Integration
> Affects Versions: 2.0.2
> Reporter: Julien DUMETIER
> Priority: Minor
> Attachments: Log4jLogger.java
>
>
> The java.util.logging output is hard to redirect to an existing logging solution.
> I suggest to use SLF4J or something else.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (CXF-1033) Migrate to another logging solution
rather than java.util.logging
Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-1033?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Guillaume Nodet updated CXF-1033:
---------------------------------
Attachment: (was: Log4jLogger.java)
> Migrate to another logging solution rather than java.util.logging
> -----------------------------------------------------------------
>
> Key: CXF-1033
> URL: https://issues.apache.org/jira/browse/CXF-1033
> Project: CXF
> Issue Type: New Feature
> Components: Integration
> Affects Versions: 2.0.2
> Reporter: Julien DUMETIER
> Priority: Minor
>
> The java.util.logging output is hard to redirect to an existing logging solution.
> I suggest to use SLF4J or something else.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (CXF-1033) Migrate to another logging solution
rather than java.util.logging
Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-1033?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Guillaume Nodet reassigned CXF-1033:
------------------------------------
Assignee: Guillaume Nodet
> Migrate to another logging solution rather than java.util.logging
> -----------------------------------------------------------------
>
> Key: CXF-1033
> URL: https://issues.apache.org/jira/browse/CXF-1033
> Project: CXF
> Issue Type: New Feature
> Components: Integration
> Affects Versions: 2.0.2
> Reporter: Julien DUMETIER
> Assignee: Guillaume Nodet
> Priority: Minor
> Attachments: AbstractDelegatingLogger.java, Log4jLogger.java
>
>
> The java.util.logging output is hard to redirect to an existing logging solution.
> I suggest to use SLF4J or something else.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (CXF-1033) Migrate to another logging solution
rather than java.util.logging
Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-1033?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Guillaume Nodet updated CXF-1033:
---------------------------------
Attachment: Log4jLogger.java
AbstractDelegatingLogger.java
Logger on top of Log4J and its abstract base class for supporting other frameworks.
> Migrate to another logging solution rather than java.util.logging
> -----------------------------------------------------------------
>
> Key: CXF-1033
> URL: https://issues.apache.org/jira/browse/CXF-1033
> Project: CXF
> Issue Type: New Feature
> Components: Integration
> Affects Versions: 2.0.2
> Reporter: Julien DUMETIER
> Priority: Minor
> Attachments: AbstractDelegatingLogger.java, Log4jLogger.java
>
>
> The java.util.logging output is hard to redirect to an existing logging solution.
> I suggest to use SLF4J or something else.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (CXF-1033) Migrate to another logging solution
rather than java.util.logging
Posted by "Freeman Fang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-1033?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Freeman Fang resolved CXF-1033.
-------------------------------
Resolution: Fixed
Fix Version/s: 2.0.3
> Migrate to another logging solution rather than java.util.logging
> -----------------------------------------------------------------
>
> Key: CXF-1033
> URL: https://issues.apache.org/jira/browse/CXF-1033
> Project: CXF
> Issue Type: New Feature
> Components: Integration
> Affects Versions: 2.0.2
> Reporter: Julien DUMETIER
> Assignee: Guillaume Nodet
> Priority: Minor
> Fix For: 2.0.3
>
> Attachments: AbstractDelegatingLogger.java, Log4jLogger.java
>
>
> The java.util.logging output is hard to redirect to an existing logging solution.
> I suggest to use SLF4J or something else.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.