Forums de discussion

Append log details in file liferay 6.2

Heena R, modifié il y a 7 années.

Append log details in file liferay 6.2

New Member Publications: 21 Date d'inscription: 08/08/16 Publications récentes
Hi,

to append log details in file instead of console i m inserting 2nd and 3rd line in log4j.properties file(please check line no below) and commenting the 4th line which is present in log4j.properties file by default . but fail to find log details in file. is this right way to configure ??.. if anyone knows solution for this please do reply .

my log4j.properties file look something like this.

1. log4j.rootLogger=INFO, CONSOLE
2. log4j.appender.CONSOLE=org.apache.log4j.FileAppender
3. log4j.appender.CONSOLE.File= E:\lrportal\workspace\liferay6.2\liferay-portal-6.2-ce-ga2\tomcat-7.0.42\logs\log-today.log
4. #log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
5. log4j.appender.CONSOLE.layout=org.apache.log4j.EnhancedPatternLayout
6. log4j.appender.CONSOLE.layout.ConversionPattern=%d{ABSOLUTE} %-5p [%c{1}:%L] %m%n