[JIRA] Created: (LBCLASSIC-320) Allow logger pattern filter to collapse x levels of package name

View: New views
2 Messages — Rating Filter:   Alert me  

[JIRA] Created: (LBCLASSIC-320) Allow logger pattern filter to collapse x levels of package name

by JIRA noreply-jira@qos.ch :: Rate this Message:

| View Threaded | Show Only this Message

Allow logger pattern filter to collapse x levels of package name
----------------------------------------------------------------

                 Key: LBCLASSIC-320
                 URL: http://jira.qos.ch/browse/LBCLASSIC-320
             Project: logback-classic
          Issue Type: Improvement
          Components: layout
    Affects Versions: 1.0.0
            Reporter: Antony Stubbs
            Assignee: Logback dev list


It would be great, instead of only working on a character level, to be able to work at a package level.
I.e. logger{p3}
would convert
org.apache.solr.handlers.dataimporthandler
to
o.a.s.handlers.dataimporthandler

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.qos.ch/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
_______________________________________________
logback-dev mailing list
logback-dev@...
http://mailman.qos.ch/mailman/listinfo/logback-dev

[JIRA] Commented: (LBCLASSIC-320) Allow logger pattern filter to collapse x levels of package name

by JIRA noreply-jira@qos.ch :: Rate this Message:

| View Threaded | Show Only this Message


    [ http://jira.qos.ch/browse/LBCLASSIC-320?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12375#action_12375 ]

Dieter Mueller commented on LBCLASSIC-320:
------------------------------------------

Hello,

I even would like to have kind of substitution for defined packages:

org.apache.solr=aplr
org.quartz.=qua
org.springframework=spring

and then
org.apache.solr.handlers.dataimporthandler
would be replaced with
aplr.handlers.dataimporthandler

I do not know, how to define such substitutions in a proper way,
but I would like it.

Perhaps on the logger defining section:
  <logger name="org.springframework" level="IFNO" shortCut="spring"/>

and a new variable on message format:
logger{shortcut,2}
would convert:

org.springframework.context.support.GenericApplicationContext
org.springframework.beans.factory.support.DefaultListableBeanFactory

to:
spring.c.s.GenericApplicationContext
spring.b.f.support.DefaultListableBeanFactory

logger{shortcut,2} would mean:
print out the shortcut and collaps the following 2 subpackages.


Dieter Mueller

> Allow logger pattern filter to collapse x levels of package name
> ----------------------------------------------------------------
>
>                 Key: LBCLASSIC-320
>                 URL: http://jira.qos.ch/browse/LBCLASSIC-320
>             Project: logback-classic
>          Issue Type: Improvement
>          Components: layout
>    Affects Versions: 1.0.0
>            Reporter: Antony Stubbs
>            Assignee: Logback dev list
>
> It would be great, instead of only working on a character level, to be able to work at a package level.
> I.e. logger{p3}
> would convert
> org.apache.solr.handlers.dataimporthandler
> to
> o.a.s.handlers.dataimporthandler

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.qos.ch/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
_______________________________________________
logback-dev mailing list
logback-dev@...
http://mailman.qos.ch/mailman/listinfo/logback-dev