You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Michael Dürig (JIRA)" <ji...@apache.org> on 2008/07/28 14:35:31 UTC
[jira] Created: (JCR-1695) Improve and promote spi-logger
Improve and promote spi-logger
------------------------------
Key: JCR-1695
URL: https://issues.apache.org/jira/browse/JCR-1695
Project: Jackrabbit
Issue Type: Improvement
Components: sandbox
Reporter: Michael Dürig
Priority: Minor
The spi-logger is very useful for debugging an SPI implementation. However it only supports the RepositoryService interface. Other SPI interfaces are not supported. Also writing log information as string seems a bit restrictive to me. Finally it is not included in the jackrabbit-spi package which introduces an additional dependency for debugging.
I therefore suggest:
- Add support for the other major SPI interfaces
- Replace the current way of logging a String to a Writer instance by a more versatile mechanism (i.e. clients have to provide an interface which consumes more structured log data).
- Provide some default implementation for the above mechanism (i.e. writing to a file, writing to a slf4j based logger, writing to the console...)
- Promote this project to jackrabbit-spi
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (JCR-1695) Improve and promote spi-logger
Posted by "Michael Dürig (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JCR-1695?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12688675#action_12688675 ]
Michael Dürig commented on JCR-1695:
------------------------------------
Revision 757775 introduces o.a.j.spi.commons.logging.*
In the most simple case
RepositoryService loggingService = SpiLoggerFactory.create(service);
creates a log wrapper for service which logs all calls to its methods if logging at the debug level is enabled. If logging is not enabled, no log wrapper is created at all and service itself is returned. There is thus virtually no overhead from disabled loggers. Loggers are enabled and disabled via the configuration mechanism of the logging framework which is in place.
> Improve and promote spi-logger
> ------------------------------
>
> Key: JCR-1695
> URL: https://issues.apache.org/jira/browse/JCR-1695
> Project: Jackrabbit Content Repository
> Issue Type: Improvement
> Components: jackrabbit-spi-commons, sandbox
> Reporter: Michael Dürig
> Assignee: Michael Dürig
> Priority: Minor
> Fix For: 1.6.0
>
>
> The spi-logger is very useful for debugging an SPI implementation. However it only supports the RepositoryService interface. Other SPI interfaces are not supported. Also writing log information as string seems a bit restrictive to me. Finally it is not included in the jackrabbit-spi package which introduces an additional dependency for debugging.
> I therefore suggest:
> - Add support for the other major SPI interfaces
> - Replace the current way of logging a String to a Writer instance by a more versatile mechanism (i.e. clients have to provide an interface which consumes more structured log data).
> - Provide some default implementation for the above mechanism (i.e. writing to a file, writing to a slf4j based logger, writing to the console...)
> - Promote this project to jackrabbit-spi
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (JCR-1695) Improve and promote spi-logger
Posted by "Michael Dürig (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JCR-1695?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Dürig reassigned JCR-1695:
----------------------------------
Assignee: Michael Dürig
> Improve and promote spi-logger
> ------------------------------
>
> Key: JCR-1695
> URL: https://issues.apache.org/jira/browse/JCR-1695
> Project: Jackrabbit Content Repository
> Issue Type: Improvement
> Components: sandbox
> Reporter: Michael Dürig
> Assignee: Michael Dürig
> Priority: Minor
>
> The spi-logger is very useful for debugging an SPI implementation. However it only supports the RepositoryService interface. Other SPI interfaces are not supported. Also writing log information as string seems a bit restrictive to me. Finally it is not included in the jackrabbit-spi package which introduces an additional dependency for debugging.
> I therefore suggest:
> - Add support for the other major SPI interfaces
> - Replace the current way of logging a String to a Writer instance by a more versatile mechanism (i.e. clients have to provide an interface which consumes more structured log data).
> - Provide some default implementation for the above mechanism (i.e. writing to a file, writing to a slf4j based logger, writing to the console...)
> - Promote this project to jackrabbit-spi
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (JCR-1695) Improve and promote spi-logger
Posted by "Michael Dürig (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JCR-1695?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12677806#action_12677806 ]
Michael Dürig commented on JCR-1695:
------------------------------------
I will be back on March 9
> Improve and promote spi-logger
> ------------------------------
>
> Key: JCR-1695
> URL: https://issues.apache.org/jira/browse/JCR-1695
> Project: Jackrabbit Content Repository
> Issue Type: Improvement
> Components: sandbox
> Reporter: Michael Dürig
> Priority: Minor
>
> The spi-logger is very useful for debugging an SPI implementation. However it only supports the RepositoryService interface. Other SPI interfaces are not supported. Also writing log information as string seems a bit restrictive to me. Finally it is not included in the jackrabbit-spi package which introduces an additional dependency for debugging.
> I therefore suggest:
> - Add support for the other major SPI interfaces
> - Replace the current way of logging a String to a Writer instance by a more versatile mechanism (i.e. clients have to provide an interface which consumes more structured log data).
> - Provide some default implementation for the above mechanism (i.e. writing to a file, writing to a slf4j based logger, writing to the console...)
> - Promote this project to jackrabbit-spi
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (JCR-1695) Improve and promote spi-logger
Posted by "angela (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JCR-1695?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12695311#action_12695311 ]
angela commented on JCR-1695:
-----------------------------
in agreement with marcel the original contributor of the spi-logger, i removed the sandbox/spi/spi-logger project
at rev. 761589
> Improve and promote spi-logger
> ------------------------------
>
> Key: JCR-1695
> URL: https://issues.apache.org/jira/browse/JCR-1695
> Project: Jackrabbit Content Repository
> Issue Type: Improvement
> Components: jackrabbit-spi-commons, sandbox
> Reporter: Michael Dürig
> Assignee: Michael Dürig
> Priority: Minor
> Fix For: 1.6.0
>
>
> The spi-logger is very useful for debugging an SPI implementation. However it only supports the RepositoryService interface. Other SPI interfaces are not supported. Also writing log information as string seems a bit restrictive to me. Finally it is not included in the jackrabbit-spi package which introduces an additional dependency for debugging.
> I therefore suggest:
> - Add support for the other major SPI interfaces
> - Replace the current way of logging a String to a Writer instance by a more versatile mechanism (i.e. clients have to provide an interface which consumes more structured log data).
> - Provide some default implementation for the above mechanism (i.e. writing to a file, writing to a slf4j based logger, writing to the console...)
> - Promote this project to jackrabbit-spi
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (JCR-1695) Improve and promote spi-logger
Posted by "Michael Dürig (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JCR-1695?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Dürig updated JCR-1695:
-------------------------------
Comment: was deleted
> Improve and promote spi-logger
> ------------------------------
>
> Key: JCR-1695
> URL: https://issues.apache.org/jira/browse/JCR-1695
> Project: Jackrabbit Content Repository
> Issue Type: Improvement
> Components: sandbox
> Reporter: Michael Dürig
> Priority: Minor
>
> The spi-logger is very useful for debugging an SPI implementation. However it only supports the RepositoryService interface. Other SPI interfaces are not supported. Also writing log information as string seems a bit restrictive to me. Finally it is not included in the jackrabbit-spi package which introduces an additional dependency for debugging.
> I therefore suggest:
> - Add support for the other major SPI interfaces
> - Replace the current way of logging a String to a Writer instance by a more versatile mechanism (i.e. clients have to provide an interface which consumes more structured log data).
> - Provide some default implementation for the above mechanism (i.e. writing to a file, writing to a slf4j based logger, writing to the console...)
> - Promote this project to jackrabbit-spi
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (JCR-1695) Improve and promote spi-logger
Posted by "angela (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JCR-1695?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12677419#action_12677419 ]
angela commented on JCR-1695:
-----------------------------
one more thought:
after all i have the impression that the spi-logger is a utility that should be available with the spi-commons as are default implementations for spi-interfaces. i'm not sure whether it would deserve it's on project.... the only problem i currently see: the logger requires java 1.5.
> Improve and promote spi-logger
> ------------------------------
>
> Key: JCR-1695
> URL: https://issues.apache.org/jira/browse/JCR-1695
> Project: Jackrabbit Content Repository
> Issue Type: Improvement
> Components: sandbox
> Reporter: Michael Dürig
> Priority: Minor
>
> The spi-logger is very useful for debugging an SPI implementation. However it only supports the RepositoryService interface. Other SPI interfaces are not supported. Also writing log information as string seems a bit restrictive to me. Finally it is not included in the jackrabbit-spi package which introduces an additional dependency for debugging.
> I therefore suggest:
> - Add support for the other major SPI interfaces
> - Replace the current way of logging a String to a Writer instance by a more versatile mechanism (i.e. clients have to provide an interface which consumes more structured log data).
> - Provide some default implementation for the above mechanism (i.e. writing to a file, writing to a slf4j based logger, writing to the console...)
> - Promote this project to jackrabbit-spi
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (JCR-1695) Improve and promote spi-logger
Posted by "Michael Dürig (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JCR-1695?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12677805#action_12677805 ]
Michael Dürig commented on JCR-1695:
------------------------------------
AFAIR the 1.5. dependency is not a problem as it occurs in a place which would be an implementation of a spi logger in the approach I suggested above. We could just enable/disable building of this particular implementation depending on the build environment.
> Improve and promote spi-logger
> ------------------------------
>
> Key: JCR-1695
> URL: https://issues.apache.org/jira/browse/JCR-1695
> Project: Jackrabbit Content Repository
> Issue Type: Improvement
> Components: sandbox
> Reporter: Michael Dürig
> Priority: Minor
>
> The spi-logger is very useful for debugging an SPI implementation. However it only supports the RepositoryService interface. Other SPI interfaces are not supported. Also writing log information as string seems a bit restrictive to me. Finally it is not included in the jackrabbit-spi package which introduces an additional dependency for debugging.
> I therefore suggest:
> - Add support for the other major SPI interfaces
> - Replace the current way of logging a String to a Writer instance by a more versatile mechanism (i.e. clients have to provide an interface which consumes more structured log data).
> - Provide some default implementation for the above mechanism (i.e. writing to a file, writing to a slf4j based logger, writing to the console...)
> - Promote this project to jackrabbit-spi
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (JCR-1695) Improve and promote spi-logger
Posted by "Michael Dürig (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JCR-1695?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Dürig resolved JCR-1695.
--------------------------------
Resolution: Fixed
Fix Version/s: 1.6.0
Fixed at revision 757775
> Improve and promote spi-logger
> ------------------------------
>
> Key: JCR-1695
> URL: https://issues.apache.org/jira/browse/JCR-1695
> Project: Jackrabbit Content Repository
> Issue Type: Improvement
> Components: jackrabbit-spi-commons, sandbox
> Reporter: Michael Dürig
> Assignee: Michael Dürig
> Priority: Minor
> Fix For: 1.6.0
>
>
> The spi-logger is very useful for debugging an SPI implementation. However it only supports the RepositoryService interface. Other SPI interfaces are not supported. Also writing log information as string seems a bit restrictive to me. Finally it is not included in the jackrabbit-spi package which introduces an additional dependency for debugging.
> I therefore suggest:
> - Add support for the other major SPI interfaces
> - Replace the current way of logging a String to a Writer instance by a more versatile mechanism (i.e. clients have to provide an interface which consumes more structured log data).
> - Provide some default implementation for the above mechanism (i.e. writing to a file, writing to a slf4j based logger, writing to the console...)
> - Promote this project to jackrabbit-spi
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (JCR-1695) Improve and promote spi-logger
Posted by "Michael Dürig (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JCR-1695?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Dürig updated JCR-1695:
-------------------------------
Component/s: jackrabbit-spi-commons
Adding spi-commons as target of promotion
> Improve and promote spi-logger
> ------------------------------
>
> Key: JCR-1695
> URL: https://issues.apache.org/jira/browse/JCR-1695
> Project: Jackrabbit Content Repository
> Issue Type: Improvement
> Components: jackrabbit-spi-commons, sandbox
> Reporter: Michael Dürig
> Assignee: Michael Dürig
> Priority: Minor
>
> The spi-logger is very useful for debugging an SPI implementation. However it only supports the RepositoryService interface. Other SPI interfaces are not supported. Also writing log information as string seems a bit restrictive to me. Finally it is not included in the jackrabbit-spi package which introduces an additional dependency for debugging.
> I therefore suggest:
> - Add support for the other major SPI interfaces
> - Replace the current way of logging a String to a Writer instance by a more versatile mechanism (i.e. clients have to provide an interface which consumes more structured log data).
> - Provide some default implementation for the above mechanism (i.e. writing to a file, writing to a slf4j based logger, writing to the console...)
> - Promote this project to jackrabbit-spi
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (JCR-1695) Improve and promote spi-logger
Posted by "angela (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JCR-1695?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12617416#action_12617416 ]
angela commented on JCR-1695:
-----------------------------
sounds reasonable.
do you already have something at hand, that you could contribute? that would be cool :)
> Improve and promote spi-logger
> ------------------------------
>
> Key: JCR-1695
> URL: https://issues.apache.org/jira/browse/JCR-1695
> Project: Jackrabbit
> Issue Type: Improvement
> Components: sandbox
> Reporter: Michael Dürig
> Priority: Minor
>
> The spi-logger is very useful for debugging an SPI implementation. However it only supports the RepositoryService interface. Other SPI interfaces are not supported. Also writing log information as string seems a bit restrictive to me. Finally it is not included in the jackrabbit-spi package which introduces an additional dependency for debugging.
> I therefore suggest:
> - Add support for the other major SPI interfaces
> - Replace the current way of logging a String to a Writer instance by a more versatile mechanism (i.e. clients have to provide an interface which consumes more structured log data).
> - Provide some default implementation for the above mechanism (i.e. writing to a file, writing to a slf4j based logger, writing to the console...)
> - Promote this project to jackrabbit-spi
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (JCR-1695) Improve and promote spi-logger
Posted by "Michael Dürig (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JCR-1695?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12617419#action_12617419 ]
Michael Dürig commented on JCR-1695:
------------------------------------
Not yet, but I'll provide patches as soon as I get around to work on this.
> Improve and promote spi-logger
> ------------------------------
>
> Key: JCR-1695
> URL: https://issues.apache.org/jira/browse/JCR-1695
> Project: Jackrabbit
> Issue Type: Improvement
> Components: sandbox
> Reporter: Michael Dürig
> Priority: Minor
>
> The spi-logger is very useful for debugging an SPI implementation. However it only supports the RepositoryService interface. Other SPI interfaces are not supported. Also writing log information as string seems a bit restrictive to me. Finally it is not included in the jackrabbit-spi package which introduces an additional dependency for debugging.
> I therefore suggest:
> - Add support for the other major SPI interfaces
> - Replace the current way of logging a String to a Writer instance by a more versatile mechanism (i.e. clients have to provide an interface which consumes more structured log data).
> - Provide some default implementation for the above mechanism (i.e. writing to a file, writing to a slf4j based logger, writing to the console...)
> - Promote this project to jackrabbit-spi
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.