Discussion:
[jira] [Created] (LOG4J2-496) Allow Layout header and footer to be configured in files and to contain properties.
Ralph Goers (JIRA)
2014-01-12 22:36:50 UTC
Permalink
Ralph Goers created LOG4J2-496:
----------------------------------

Summary: Allow Layout header and footer to be configured in files and to contain properties.
Key: LOG4J2-496
URL: https://issues.apache.org/jira/browse/LOG4J2-496
Project: Log4j 2
Issue Type: Improvement
Components: Configurators
Affects Versions: 2.0-beta9
Reporter: Ralph Goers


In LOG4J2-491 the user is requesting to be able to insert his own custom header and footer during rollover. The Layout header and footer were designed for that purpose but currently can only be used to specify a static header or footer. Furthermore, PatternLayout doesn't allow the header or footer to be provided at all.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)
Ralph Goers (JIRA)
2014-03-01 17:42:19 UTC
Permalink
[ https://issues.apache.org/jira/browse/LOG4J2-496?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ralph Goers resolved LOG4J2-496.
--------------------------------

Resolution: Fixed
Fix Version/s: 2.0-rc2
Assignee: Ralph Goers

PatternLayout was modified to allow a header and footer to be specified that can contain a lookup pattern in revision 1573203.
Post by Ralph Goers (JIRA)
Allow Layout header and footer to be configured in files and to contain properties.
-----------------------------------------------------------------------------------
Key: LOG4J2-496
URL: https://issues.apache.org/jira/browse/LOG4J2-496
Project: Log4j 2
Issue Type: Improvement
Components: Configurators
Affects Versions: 2.0-beta9
Reporter: Ralph Goers
Assignee: Ralph Goers
Fix For: 2.0-rc2
In LOG4J2-491 the user is requesting to be able to insert his own custom header and footer during rollover. The Layout header and footer were designed for that purpose but currently can only be used to specify a static header or footer. Furthermore, PatternLayout doesn't allow the header or footer to be provided at all.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)
Ralph Goers (JIRA)
2014-03-01 17:42:19 UTC
Permalink
[ https://issues.apache.org/jira/browse/LOG4J2-496?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ralph Goers closed LOG4J2-496.
------------------------------
Post by Ralph Goers (JIRA)
Allow Layout header and footer to be configured in files and to contain properties.
-----------------------------------------------------------------------------------
Key: LOG4J2-496
URL: https://issues.apache.org/jira/browse/LOG4J2-496
Project: Log4j 2
Issue Type: Improvement
Components: Configurators
Affects Versions: 2.0-beta9
Reporter: Ralph Goers
Assignee: Ralph Goers
Fix For: 2.0-rc2
In LOG4J2-491 the user is requesting to be able to insert his own custom header and footer during rollover. The Layout header and footer were designed for that purpose but currently can only be used to specify a static header or footer. Furthermore, PatternLayout doesn't allow the header or footer to be provided at all.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)
Brian Fincher (JIRA)
2014-09-17 13:06:34 UTC
Permalink
[ https://issues.apache.org/jira/browse/LOG4J2-496?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14137185#comment-14137185 ]

Brian Fincher commented on LOG4J2-496:
--------------------------------------

Where is it document explaining how to use a header / footer that contains a "lookup pattern"? I don't see it in the API docs or in the general layout docs.
Post by Ralph Goers (JIRA)
Allow Layout header and footer to be configured in files and to contain properties.
-----------------------------------------------------------------------------------
Key: LOG4J2-496
URL: https://issues.apache.org/jira/browse/LOG4J2-496
Project: Log4j 2
Issue Type: Improvement
Components: Configurators
Affects Versions: 2.0-beta9
Reporter: Ralph Goers
Assignee: Ralph Goers
Fix For: 2.0-rc2
In LOG4J2-491 the user is requesting to be able to insert his own custom header and footer during rollover. The Layout header and footer were designed for that purpose but currently can only be used to specify a static header or footer. Furthermore, PatternLayout doesn't allow the header or footer to be provided at all.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
Gary Gregory (JIRA)
2014-09-22 14:01:34 UTC
Permalink
[ https://issues.apache.org/jira/browse/LOG4J2-496?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14143226#comment-14143226 ]

Gary Gregory commented on LOG4J2-496:
-------------------------------------

Just to be clear, you can use a lookup like "$\{sys:os.name\}" but not a "%" pattern like "%d\{UNIX\}"
Post by Ralph Goers (JIRA)
Allow Layout header and footer to be configured in files and to contain properties.
-----------------------------------------------------------------------------------
Key: LOG4J2-496
URL: https://issues.apache.org/jira/browse/LOG4J2-496
Project: Log4j 2
Issue Type: Improvement
Components: Configurators
Affects Versions: 2.0-beta9
Reporter: Ralph Goers
Assignee: Ralph Goers
Fix For: 2.0-rc2
In LOG4J2-491 the user is requesting to be able to insert his own custom header and footer during rollover. The Layout header and footer were designed for that purpose but currently can only be used to specify a static header or footer. Furthermore, PatternLayout doesn't allow the header or footer to be provided at all.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Loading...