Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Does log4cpp support %F %l

Help
mibharath
2007-03-14
2013-05-20
  • mibharath
    mibharath
    2007-03-14

    I am trying to get the file name and the line number from where the log request was sent, I dont see any references to %F or %L in the layouts and in the documentation either.
    I assumed it might be in there but when i tried the following:
    log4j.appender.INFO.layout.ConversionPattern=%d{ISO8601} [%t] %p %c %F %m %n

    I get the following exception -- Exception encountered with the config file:unknown conversion specifier 'F' in %d{ISO8601} [%t] %p %c %F %m %n at index 17.

    Is it that I am using the log4j namespace we run into this problem or is the feature not implemented in log4cpp at all.
    Could you please clarify the situation.

    Thanks in advance
    -Bharath