Re: Uaa.log

Palani Samy <palani160385@...>

Hi Team,

Thanks for quick response, here i have already log4j configuration under tomcat lib folder.

But still its now working, uaa.log file is creating under /tomcat/logs/uaa.log

log4j.rootLogger = INFO, CATALINA

# Define all the appenders
log4j.appender.CATALINA = org.apache.log4j.DailyRollingFileAppender
log4j.appender.CATALINA.File = ${catalina.base}/logs/catalina
log4j.appender.CATALINA.Append = true
log4j.appender.CATALINA.Encoding = UTF-8
# Roll-over the log once per day
log4j.appender.CATALINA.DatePattern = '.'yyyy-MM-dd'.log'
log4j.appender.CATALINA.layout = org.apache.log4j.PatternLayout
log4j.appender.CATALINA.layout.ConversionPattern = %d [%t] %-5p %c- %m%n

log4j.appender.LOCALHOST = org.apache.log4j.DailyRollingFileAppender
log4j.appender.LOCALHOST.File = ${catalina.base}/logs/localhost
log4j.appender.LOCALHOST.Append = true
log4j.appender.LOCALHOST.Encoding = UTF-8
log4j.appender.LOCALHOST.DatePattern = '.'yyyy-MM-dd'.log'
log4j.appender.LOCALHOST.layout = org.apache.log4j.PatternLayout
log4j.appender.LOCALHOST.layout.ConversionPattern = %d [%t] %-5p %c- %m%n

log4j.appender.MANAGER = org.apache.log4j.DailyRollingFileAppender
log4j.appender.MANAGER.File = ${catalina.base}/logs/manager
log4j.appender.MANAGER.Append = true
log4j.appender.MANAGER.Encoding = UTF-8
log4j.appender.MANAGER.DatePattern = '.'yyyy-MM-dd'.log'
log4j.appender.MANAGER.layout = org.apache.log4j.PatternLayout
log4j.appender.MANAGER.layout.ConversionPattern = %d [%t] %-5p %c- %m%n

log4j.appender.HOST-MANAGER = org.apache.log4j.DailyRollingFileAppender
log4j.appender.HOST-MANAGER.File = ${catalina.base}/logs/host-manager
log4j.appender.HOST-MANAGER.Append = true
log4j.appender.HOST-MANAGER.Encoding = UTF-8
log4j.appender.HOST-MANAGER.DatePattern = '.'yyyy-MM-dd'.log'
log4j.appender.HOST-MANAGER.layout = org.apache.log4j.PatternLayout
log4j.appender.HOST-MANAGER.layout.ConversionPattern = %d [%t] %-5p %c- %m%n

log4j.appender.CONSOLE = org.apache.log4j.ConsoleAppender
log4j.appender.CONSOLE.Encoding = UTF-8
log4j.appender.CONSOLE.layout = org.apache.log4j.PatternLayout
log4j.appender.CONSOLE.layout.ConversionPattern = %d [%t] %-5p %c- %m%n

# Configure which loggers log to which appenders[Catalina].[localhost] = INFO, LOCALHOST[Catalina].[localhost].[/manager] =\
  INFO, MANAGER[Catalina].[localhost].[/host-manager] =\

On Sat, Jan 11, 2020 at 11:48 AM Filip Hanik <fhanik@...> wrote:
You can control logging in the log4j configuration file. 

On Fri, Jan 10, 2020 at 20:02 Palani Samy <palani160385@...> wrote:

Hi Team

I deployed cloud foudary war file inside the tomcat, and we can able to access foundry home page in browser.
when i am doing to start tomcat server my server is coming up and i can able to see the UI changes in the browser.

Now uaa.log file is available under the /tomcat/logs folder location by default, now the question is i don't want generate uaa.log file in this location, instead of this it should be some where else required.
For example /root/user/logs.

Please find the below logs view structure.
root@linux-vm:/opt/tomcat/apache-tomcat-9.0.26/logs# ls -lrt

-rw-r----- 1 root root 0 Dec 26 06:01 manager.2019-12-26.log
-rw-r----- 1 root root 0 Dec 26 06:01 host-manager.2019-12-26.log
-rw-r----- 1 root root 0 Dec 26 06:01 localhost_access_log.2019-12-26.txt
-rw-r----- 1 root root 2481 Dec 26 06:12 localhost.2019-12-26.log
-rw-r----- 1 root root 31443 Dec 26 06:12 catalina.2019-12-26.log
-rw-r----- 1 root root 179793 Dec 26 06:24 uaa.log
-rw-r----- 1 root root 1042803 Dec 26 06:24 catalina.out


Join { to automatically receive all group messages.