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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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