How to set up catalina.out log files on jasperserver for multiple instances? - jasperserver

I have jasperserver with two instances. And in both instances here /var/log/tomcat9_first_instance, /var/log/tomcat9_second_instance I have catalina.out log file. But I did not get there logs from my instances, instead all logs go to /var/log/tomcat9/catalina.out.
I want log from first instance in /var/log/tomcat9_first_instance/catalina.out and from second instance in /var/log/tomcat9_second_instance/catalina.out. How to fix this? 

Related

Difference between rundeck.audit.events.log and rundeck.audit.log

I updated my rundeck version from 3.4.9 to 4.7.0 in my RHEL8 machine and due to that a new log file has been introduced in the application i.e. "rundeck.audit.events.log". I am trying to figure out what does this file contain that "rundeck.audit.log" does not. So basically, what is the difference between both the log files? Does the new log file contain anything different that other log files don't?
I looked at few articles explaining rundeck.audit.events.log file but it doesn't contain any difference between both the log files.
rundeck.audit.log: Authorization messages pertaining to aclpolicy (more info here).
rundeck.audit.events.log: Logs all auditing events (users logins, logouts, etc..)
More info here.

how to Pipe Magento2 logs to STDOUT?

How to store/write the logs inside STD-OUT instead of var/log folder in Magento2 root?
Is it possible to store the logs directly to syslog instead of var/log?

Wildfly - logging into one file

It seems my wildfly server produces separate log file for each day: like
server.log.2017-06-30 server.log.2017-07-06. Is it possible to make it logging into one (always same) file?
By default WildFly is configured to use a periodic-rotating-file-handler which rotates every day. If you don't want log rotation you can use a file-handler instead.
The following CLI commands will make the change to using a file-handler.
batch
/subsystem=logging/root-logger=ROOT:remove-handler(name=FILE)
/subsystem=logging/periodic-rotating-file-handler=FILE:remove
/subsystem=logging/file-handler=FILE:add(named-formatter=PATTERN, append=true, autoflush=true, file={relative-to=jboss.server.log.dir, path=server.log})
/subsystem=logging/root-logger=ROOT:add-handler(name=FILE)
run-batch
One attribute to note is the append attribute. I've set it to true so that you won't lose any log messages on a reboot or when this command is executed. If you're not concerned about losing log messages you could set it to false.

Capistrano 3 move log directory

how can I change the directory where capistrano puts its log files? I could not find in the docs.
Currently the logs appear in myapp/log/... on my dev machine. However, since I am using laravel, and there is a log directory myapp/storage/logs I would like capistranos logs to appear here as well.
Do you mean the capistrano.log file that is created and appended to whenever you deploy?
You can specify the location by adding the following to deploy.rb:
set :format_options, log_file: "storage/logs/capistrano.log"
This tells Airbrussh (the default logging implementation in Capistrano 3.5.0+) where to place the log file. More information here: https://github.com/mattbrictson/airbrussh#configuration

Cannot get Glassfish to log my apps debuug level logs

I am using commons-logging swith the following commons-logging.properties:
org.apache.commons.logging.Log=org.apache.commons.logging.impl.Jdk14Logger
I have set my app logger to FINEST in GF4 ui management console but it only logs INFO messages. Any ideas why?
Also where is it more appropriate to set my log levels, under server-config or default-config?
Thanks
I managed to find the answer in Oracle's documentation. GF3 (and apparently GF4) set the min level to the root level to INFO. The global log settings must be changed in GF props file: logging.properties which is usually under the domain/conf directory
http://docs.oracle.com/cd/E19798-01/821-1751/ghmep/index.html