Menu

#46 RollingFileAppender rolled file sufix

v1.2.0
open-invalid
General (51)
5
2003-09-18
2003-09-03
No

When using this appender, you can not specify the
rolled file to be named "log.xml.[dd-MM-yyyy].xml".
That is, to specify a file extension, you have to
append it to the dateformat, but that causes the "m" in
".xml" to be interpreted as another date formatting
(i.e. minutes).
Ideally, when specifying StaticLogFileName, it would be
useful to have a StaticLogFileNameExtension property.

Discussion

  • Nicko Cadell

    Nicko Cadell - 2003-09-18
    • status: open --> open-invalid
     
  • Nicko Cadell

    Nicko Cadell - 2003-09-18

    Logged In: YES
    user_id=278872

    The date pattern is passed directly to the DateTime.ToString
    function. This allows strings to be embedded in the pattern
    as long as they are placed within single quotes. Therefore the
    pattern:

    'log.xml.['dd-MM-yyyy'].xml'

    should do the trick.

     
  • Daniel Cazzulino (kzu)

    Logged In: YES
    user_id=222270

    Great!! Thanks!!

     

Log in to post a comment.