[jira] [Commented] (LOG4NET-316) Provide a Layout Pattern that is re-evaluated on each use

2011-11-28 Thread Stefan Bodewig (Commented) (JIRA)

[ 
https://issues.apache.org/jira/browse/LOG4NET-316?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13158536#comment-13158536
 ] 

Stefan Bodewig commented on LOG4NET-316:


code looks good to me but I wonder whether it wouldn't be easier to add a 
property "dynamic" to the existing PatternLayout rather than creating a 
subclass.

> Provide a Layout Pattern that is re-evaluated on each use
> -
>
> Key: LOG4NET-316
> URL: https://issues.apache.org/jira/browse/LOG4NET-316
> Project: Log4net
>  Issue Type: Improvement
>  Components: Other
>Affects Versions: 1.2.11
>Reporter: Roy Chastain
>Priority: Minor
>  Labels: features
> Attachments: DynamicPatternLayout.cs
>
>
> The DynamicPatternLayout is a layout pattern that is re-evaluated on each 
> use.  It is appropriate to use instead of LayoutPattern to provide dynamic 
> strings in headers and footers for appenders.  Datetime is an example.  Using 
> the standard layout pattern results in the same datetime in each header and 
> footer, while using DynamicPatternLayout results in timestamp of the 
> header/footer creation.
> Example
> 
>   
>   
> 

--
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] [Commented] (LOG4NET-316) Provide a Layout Pattern that is re-evaluated on each use

2011-11-28 Thread Roy Chastain (Commented) (JIRA)

[ 
https://issues.apache.org/jira/browse/LOG4NET-316?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13158539#comment-13158539
 ] 

Roy Chastain commented on LOG4NET-316:
--

Honestly, I do not know.  I asked about this feature some time back and Ron G. 
suggested this approach.

> Provide a Layout Pattern that is re-evaluated on each use
> -
>
> Key: LOG4NET-316
> URL: https://issues.apache.org/jira/browse/LOG4NET-316
> Project: Log4net
>  Issue Type: Improvement
>  Components: Other
>Affects Versions: 1.2.11
>Reporter: Roy Chastain
>Priority: Minor
>  Labels: features
> Attachments: DynamicPatternLayout.cs
>
>
> The DynamicPatternLayout is a layout pattern that is re-evaluated on each 
> use.  It is appropriate to use instead of LayoutPattern to provide dynamic 
> strings in headers and footers for appenders.  Datetime is an example.  Using 
> the standard layout pattern results in the same datetime in each header and 
> footer, while using DynamicPatternLayout results in timestamp of the 
> header/footer creation.
> Example
> 
>   
>   
> 

--
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] [Commented] (LOG4NET-316) Provide a Layout Pattern that is re-evaluated on each use

2011-12-06 Thread Stefan Bodewig (Commented) (JIRA)

[ 
https://issues.apache.org/jira/browse/LOG4NET-316?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13163584#comment-13163584
 ] 

Stefan Bodewig commented on LOG4NET-316:


What would be your personal choice if you had free reign?

> Provide a Layout Pattern that is re-evaluated on each use
> -
>
> Key: LOG4NET-316
> URL: https://issues.apache.org/jira/browse/LOG4NET-316
> Project: Log4net
>  Issue Type: Improvement
>  Components: Other
>Affects Versions: 1.2.11
>Reporter: Roy Chastain
>Priority: Minor
>  Labels: features
> Attachments: DynamicPatternLayout.cs
>
>
> The DynamicPatternLayout is a layout pattern that is re-evaluated on each 
> use.  It is appropriate to use instead of LayoutPattern to provide dynamic 
> strings in headers and footers for appenders.  Datetime is an example.  Using 
> the standard layout pattern results in the same datetime in each header and 
> footer, while using DynamicPatternLayout results in timestamp of the 
> header/footer creation.
> Example
> 
>   
>   
> 

--
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] [Commented] (LOG4NET-316) Provide a Layout Pattern that is re-evaluated on each use

2011-12-06 Thread Roy Chastain (Commented) (JIRA)

[ 
https://issues.apache.org/jira/browse/LOG4NET-316?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13163649#comment-13163649
 ] 

Roy Chastain commented on LOG4NET-316:
--

Given my somewhat limited knowledge of the log4Net code base and internal 
design, the sub-classing seemed like a simple and clean implementation.  It 
allows for new functionality without adding logic the the PattenLayout base 
class and therefore minimizes the chance of breaking the existing 
implementation.

So, yes other than the fact that I have created a very small class and added to 
class proliferation, I am happy with the sub-classing.

> Provide a Layout Pattern that is re-evaluated on each use
> -
>
> Key: LOG4NET-316
> URL: https://issues.apache.org/jira/browse/LOG4NET-316
> Project: Log4net
>  Issue Type: Improvement
>  Components: Other
>Affects Versions: 1.2.11
>Reporter: Roy Chastain
>Priority: Minor
>  Labels: features
> Attachments: DynamicPatternLayout.cs
>
>
> The DynamicPatternLayout is a layout pattern that is re-evaluated on each 
> use.  It is appropriate to use instead of LayoutPattern to provide dynamic 
> strings in headers and footers for appenders.  Datetime is an example.  Using 
> the standard layout pattern results in the same datetime in each header and 
> footer, while using DynamicPatternLayout results in timestamp of the 
> header/footer creation.
> Example
> 
>   
>   
> 

--
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] [Commented] (LOG4NET-316) Provide a Layout Pattern that is re-evaluated on each use

2011-12-07 Thread Roy Chastain (Commented) (JIRA)

[ 
https://issues.apache.org/jira/browse/LOG4NET-316?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13164346#comment-13164346
 ] 

Roy Chastain commented on LOG4NET-316:
--

The XML comments in the code should explain how (and when) to use the 
DynamicPatternLayout so a rebuild of the SDK reference should provide the 
needed documentation.  Perhaps we could simply add it to one of the logging 
examples show on the log4Net site.
Is there an FAQ on how to modify the webpages that are displayed on the site?

> Provide a Layout Pattern that is re-evaluated on each use
> -
>
> Key: LOG4NET-316
> URL: https://issues.apache.org/jira/browse/LOG4NET-316
> Project: Log4net
>  Issue Type: Improvement
>  Components: Other
>Affects Versions: 1.2.11
>Reporter: Roy Chastain
>Priority: Minor
>  Labels: features
> Fix For: 1.2.12
>
> Attachments: DynamicPatternLayout.cs
>
>
> The DynamicPatternLayout is a layout pattern that is re-evaluated on each 
> use.  It is appropriate to use instead of LayoutPattern to provide dynamic 
> strings in headers and footers for appenders.  Datetime is an example.  Using 
> the standard layout pattern results in the same datetime in each header and 
> footer, while using DynamicPatternLayout results in timestamp of the 
> header/footer creation.
> Example
> 
>   
>   
> 

--
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] [Commented] (LOG4NET-316) Provide a Layout Pattern that is re-evaluated on each use

2011-12-07 Thread Stefan Bodewig (Commented) (JIRA)

[ 
https://issues.apache.org/jira/browse/LOG4NET-316?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13164410#comment-13164410
 ] 

Stefan Bodewig commented on LOG4NET-316:


I agree with the SDK docs.

The site itself is built using Apache Maven (I use 2.2.1 and a command line of 
mvn site:site).  It is generated from the files in src/site, most of which use 
the XDOCs format described in 
http://maven.apache.org/doxia/references/xdoc-format.html

> Provide a Layout Pattern that is re-evaluated on each use
> -
>
> Key: LOG4NET-316
> URL: https://issues.apache.org/jira/browse/LOG4NET-316
> Project: Log4net
>  Issue Type: Improvement
>  Components: Other
>Affects Versions: 1.2.11
>Reporter: Roy Chastain
>Priority: Minor
>  Labels: features
> Fix For: 1.2.12
>
> Attachments: DynamicPatternLayout.cs
>
>
> The DynamicPatternLayout is a layout pattern that is re-evaluated on each 
> use.  It is appropriate to use instead of LayoutPattern to provide dynamic 
> strings in headers and footers for appenders.  Datetime is an example.  Using 
> the standard layout pattern results in the same datetime in each header and 
> footer, while using DynamicPatternLayout results in timestamp of the 
> header/footer creation.
> Example
> 
>   
>   
> 

--
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