You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org> on 2011/07/27 16:53:10 UTC
[jira] [Created] (KARAF-784) Add date in the default Karaf log
Add date in the default Karaf log
---------------------------------
Key: KARAF-784
URL: https://issues.apache.org/jira/browse/KARAF-784
Project: Karaf
Issue Type: Improvement
Components: karaf-core
Affects Versions: 2.2.2
Reporter: Jean-Baptiste Onofré
Assignee: Jean-Baptiste Onofré
Fix For: 2.2.3, 3.0.0
The default log pattern used in Karaf for the out file (karaf.log) is:
%d{ABSOLUTE} | %-5.5p | %-16.16t | %-32.32c{1} | %-32.32C %4L | %X{bundle.id} - %X{bundle.name} - %X{bundle.version} | %m%n
It means that a log line looks like:
16:36:51,285 | INFO | Thread-6 | FeaturesServiceImpl
As Karaf is a container, and is up for a "long" time, it makes sense to add the date in the log. The log line will looks like:
2011-07-27 16:49:16,557 | INFO | Thread-4 | FeaturesServiceImpl |
I propose to use the following pattern (at least in the karaf.log file):
%d{yyyy-MM-dd HH:mm:ss,SSS} | %-5.5p | %-16.16t | %-32.32c{1} | %-32.32C %4L | %X{bundle.id} - %X{bundle.name} - %X{bundle.version} | %m%n
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (KARAF-784) Add date in the default Karaf log
Posted by "Glen Mazza (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/KARAF-784?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13071847#comment-13071847 ]
Glen Mazza commented on KARAF-784:
----------------------------------
I assume you mean %d{ISO8601}, correct? From here: http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/PatternLayout.html "%d{ISO8601}" apparently activates a faster parser than SimpleDateFormat.
> Add date in the default Karaf log
> ---------------------------------
>
> Key: KARAF-784
> URL: https://issues.apache.org/jira/browse/KARAF-784
> Project: Karaf
> Issue Type: Improvement
> Components: karaf-core
> Affects Versions: 2.2.2
> Reporter: Jean-Baptiste Onofré
> Assignee: Jean-Baptiste Onofré
> Fix For: 2.2.3, 3.0.0
>
>
> The default log pattern used in Karaf for the out file (karaf.log) is:
> %d{ABSOLUTE} | %-5.5p | %-16.16t | %-32.32c{1} | %-32.32C %4L | %X{bundle.id} - %X{bundle.name} - %X{bundle.version} | %m%n
> It means that a log line looks like:
> 16:36:51,285 | INFO | Thread-6 | FeaturesServiceImpl
> As Karaf is a container, and is up for a "long" time, it makes sense to add the date in the log. The log line will looks like:
> 2011-07-27 16:49:16,557 | INFO | Thread-4 | FeaturesServiceImpl |
> I propose to use the following pattern (at least in the karaf.log file):
> %d{yyyy-MM-dd HH:mm:ss,SSS} | %-5.5p | %-16.16t | %-32.32c{1} | %-32.32C %4L | %X{bundle.id} - %X{bundle.name} - %X{bundle.version} | %m%n
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (KARAF-784) Add date in the default Karaf log
Posted by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/KARAF-784?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13072838#comment-13072838 ]
Jean-Baptiste Onofré commented on KARAF-784:
--------------------------------------------
Fixed on trunk: revision 1152230.
> Add date in the default Karaf log
> ---------------------------------
>
> Key: KARAF-784
> URL: https://issues.apache.org/jira/browse/KARAF-784
> Project: Karaf
> Issue Type: Improvement
> Components: karaf-core
> Affects Versions: 2.2.2
> Reporter: Jean-Baptiste Onofré
> Assignee: Jean-Baptiste Onofré
> Fix For: 2.2.3, 3.0.0
>
>
> The default log pattern used in Karaf for the out file (karaf.log) is:
> %d{ABSOLUTE} | %-5.5p | %-16.16t | %-32.32c{1} | %-32.32C %4L | %X{bundle.id} - %X{bundle.name} - %X{bundle.version} | %m%n
> It means that a log line looks like:
> 16:36:51,285 | INFO | Thread-6 | FeaturesServiceImpl
> As Karaf is a container, and is up for a "long" time, it makes sense to add the date in the log. The log line will looks like:
> 2011-07-27 16:49:16,557 | INFO | Thread-4 | FeaturesServiceImpl |
> I propose to use the following pattern (at least in the karaf.log file):
> %d{yyyy-MM-dd HH:mm:ss,SSS} | %-5.5p | %-16.16t | %-32.32c{1} | %-32.32C %4L | %X{bundle.id} - %X{bundle.name} - %X{bundle.version} | %m%n
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (KARAF-784) Add date in the default Karaf log
Posted by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/KARAF-784?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13072843#comment-13072843 ]
Jean-Baptiste Onofré commented on KARAF-784:
--------------------------------------------
Fixed on karaf-2.2.x branch: revision 1152239.
> Add date in the default Karaf log
> ---------------------------------
>
> Key: KARAF-784
> URL: https://issues.apache.org/jira/browse/KARAF-784
> Project: Karaf
> Issue Type: Improvement
> Components: karaf-core
> Affects Versions: 2.2.2
> Reporter: Jean-Baptiste Onofré
> Assignee: Jean-Baptiste Onofré
> Fix For: 2.2.3, 3.0.0
>
>
> The default log pattern used in Karaf for the out file (karaf.log) is:
> %d{ABSOLUTE} | %-5.5p | %-16.16t | %-32.32c{1} | %-32.32C %4L | %X{bundle.id} - %X{bundle.name} - %X{bundle.version} | %m%n
> It means that a log line looks like:
> 16:36:51,285 | INFO | Thread-6 | FeaturesServiceImpl
> As Karaf is a container, and is up for a "long" time, it makes sense to add the date in the log. The log line will looks like:
> 2011-07-27 16:49:16,557 | INFO | Thread-4 | FeaturesServiceImpl |
> I propose to use the following pattern (at least in the karaf.log file):
> %d{yyyy-MM-dd HH:mm:ss,SSS} | %-5.5p | %-16.16t | %-32.32c{1} | %-32.32C %4L | %X{bundle.id} - %X{bundle.name} - %X{bundle.version} | %m%n
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Closed] (KARAF-784) Add date in the default Karaf log
Posted by "Jamie goodyear (Closed) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/KARAF-784?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jamie goodyear closed KARAF-784.
--------------------------------
> Add date in the default Karaf log
> ---------------------------------
>
> Key: KARAF-784
> URL: https://issues.apache.org/jira/browse/KARAF-784
> Project: Karaf
> Issue Type: Improvement
> Components: karaf-core
> Affects Versions: 2.2.2
> Reporter: Jean-Baptiste Onofré
> Assignee: Jean-Baptiste Onofré
> Fix For: 2.2.3, 3.0.0
>
>
> The default log pattern used in Karaf for the out file (karaf.log) is:
> %d{ABSOLUTE} | %-5.5p | %-16.16t | %-32.32c{1} | %-32.32C %4L | %X{bundle.id} - %X{bundle.name} - %X{bundle.version} | %m%n
> It means that a log line looks like:
> 16:36:51,285 | INFO | Thread-6 | FeaturesServiceImpl
> As Karaf is a container, and is up for a "long" time, it makes sense to add the date in the log. The log line will looks like:
> 2011-07-27 16:49:16,557 | INFO | Thread-4 | FeaturesServiceImpl |
> I propose to use the following pattern (at least in the karaf.log file):
> %d{yyyy-MM-dd HH:mm:ss,SSS} | %-5.5p | %-16.16t | %-32.32c{1} | %-32.32C %4L | %X{bundle.id} - %X{bundle.name} - %X{bundle.version} | %m%n
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (KARAF-784) Add date in the default Karaf log
Posted by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/KARAF-784?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jean-Baptiste Onofré resolved KARAF-784.
----------------------------------------
Resolution: Fixed
> Add date in the default Karaf log
> ---------------------------------
>
> Key: KARAF-784
> URL: https://issues.apache.org/jira/browse/KARAF-784
> Project: Karaf
> Issue Type: Improvement
> Components: karaf-core
> Affects Versions: 2.2.2
> Reporter: Jean-Baptiste Onofré
> Assignee: Jean-Baptiste Onofré
> Fix For: 2.2.3, 3.0.0
>
>
> The default log pattern used in Karaf for the out file (karaf.log) is:
> %d{ABSOLUTE} | %-5.5p | %-16.16t | %-32.32c{1} | %-32.32C %4L | %X{bundle.id} - %X{bundle.name} - %X{bundle.version} | %m%n
> It means that a log line looks like:
> 16:36:51,285 | INFO | Thread-6 | FeaturesServiceImpl
> As Karaf is a container, and is up for a "long" time, it makes sense to add the date in the log. The log line will looks like:
> 2011-07-27 16:49:16,557 | INFO | Thread-4 | FeaturesServiceImpl |
> I propose to use the following pattern (at least in the karaf.log file):
> %d{yyyy-MM-dd HH:mm:ss,SSS} | %-5.5p | %-16.16t | %-32.32c{1} | %-32.32C %4L | %X{bundle.id} - %X{bundle.name} - %X{bundle.version} | %m%n
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (KARAF-784) Add date in the default Karaf log
Posted by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/KARAF-784?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13071852#comment-13071852 ]
Jean-Baptiste Onofré commented on KARAF-784:
--------------------------------------------
Yes, I put %d{yyyy-MM-dd HH:mm:ss,SSS} just for information about what is the ISO8601 format.
Thanks for the precision Glen.
> Add date in the default Karaf log
> ---------------------------------
>
> Key: KARAF-784
> URL: https://issues.apache.org/jira/browse/KARAF-784
> Project: Karaf
> Issue Type: Improvement
> Components: karaf-core
> Affects Versions: 2.2.2
> Reporter: Jean-Baptiste Onofré
> Assignee: Jean-Baptiste Onofré
> Fix For: 2.2.3, 3.0.0
>
>
> The default log pattern used in Karaf for the out file (karaf.log) is:
> %d{ABSOLUTE} | %-5.5p | %-16.16t | %-32.32c{1} | %-32.32C %4L | %X{bundle.id} - %X{bundle.name} - %X{bundle.version} | %m%n
> It means that a log line looks like:
> 16:36:51,285 | INFO | Thread-6 | FeaturesServiceImpl
> As Karaf is a container, and is up for a "long" time, it makes sense to add the date in the log. The log line will looks like:
> 2011-07-27 16:49:16,557 | INFO | Thread-4 | FeaturesServiceImpl |
> I propose to use the following pattern (at least in the karaf.log file):
> %d{yyyy-MM-dd HH:mm:ss,SSS} | %-5.5p | %-16.16t | %-32.32c{1} | %-32.32C %4L | %X{bundle.id} - %X{bundle.name} - %X{bundle.version} | %m%n
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira