[cf-dev] Uaa.log

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[cf-dev] Uaa.log

Palani Samy

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 startup.sh 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

Thanks,
Palani

_._,_._,_

Links:

You receive all messages sent to this group.

View/Reply Online (#8833) | [hidden email] | [hidden email] | Mute This Topic | New Topic


Reminder that all communication on this mailing list is subject to the Cloud Foundry Foundation's code of conduct, which can be found here: https://www.cloudfoundry.org/code-of-conduct/
Your Subscription | [hidden email] | Unsubscribe [[hidden email]]
_._,_._,_
Reply | Threaded
Open this post in threaded view
|

Re: [cf-dev] Uaa.log

Filip Hanik
You can control logging in the log4j configuration file. 

On Fri, Jan 10, 2020 at 20:02 Palani Samy <[hidden email]> 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 startup.sh 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

Thanks,
Palani

_._,_._,_

Links:

You receive all messages sent to this group.

View/Reply Online (#8834) | [hidden email] | [hidden email] | Mute This Topic | New Topic


Reminder that all communication on this mailing list is subject to the Cloud Foundry Foundation's code of conduct, which can be found here: https://www.cloudfoundry.org/code-of-conduct/
Your Subscription | [hidden email] | Unsubscribe [[hidden email]]
_._,_._,_
Reply | Threaded
Open this post in threaded view
|

Re: [cf-dev] Uaa.log

Palani Samy
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
log4j.logger.org.apache.catalina.core.ContainerBase.[Catalina].[localhost] = INFO, LOCALHOST
log4j.logger.org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager] =\
  INFO, MANAGER
log4j.logger.org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/host-manager] =\
  INFO, HOST-MANAGER






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

On Fri, Jan 10, 2020 at 20:02 Palani Samy <[hidden email]> 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 startup.sh 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

Thanks,
Palani

_._,_._,_

Links:

You receive all messages sent to this group.

View/Reply Online (#8835) | [hidden email] | [hidden email] | Mute This Topic | New Topic


Reminder that all communication on this mailing list is subject to the Cloud Foundry Foundation's code of conduct, which can be found here: https://www.cloudfoundry.org/code-of-conduct/
Your Subscription | [hidden email] | Unsubscribe [[hidden email]]
_._,_._,_