Advertisement
Guest User

Untitled

a guest
May 10th, 2015
337
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.74 KB | None | 0 0
  1. mag@tomcat:~$ cat /etc/tomcat7/logging.properties
  2. handlers= com.agafua.syslog.SyslogHandler
  3.  
  4. .level= INFO
  5.  
  6. # Syslog logger
  7. com.agafua.syslog.SyslogHandler.transport = udp
  8. com.agafua.syslog.SyslogHandler.facility = local0
  9. com.agafua.syslog.SyslogHandler.port = 514
  10. com.agafua.syslog.SyslogHandler.hostname = localhost
  11.  
  12. ############################################################
  13. # Facility specific properties.
  14. # Provides extra control for each logger.
  15. ############################################################
  16.  
  17. org.apache.catalina.core.ContainerBase.[Catalina].[localhost].level = INFO
  18. org.apache.catalina.core.ContainerBase.[Catalina].[localhost].handlers = com.agafua.syslog.SyslogHandler
  19.  
  20. # For example, set the com.xyz.foo logger to only log SEVERE
  21. # messages:
  22. #org.apache.catalina.startup.ContextConfig.level = FINE
  23. #org.apache.catalina.startup.HostConfig.level = FINE
  24. #org.apache.catalina.session.ManagerBase.level = FINE
  25. #org.apache.catalina.core.AprLifecycleListener.level=FINE
  26.  
  27. mag@tomcat:~$ cat /etc/tomcat7/server.xml |grep -4 Syslog
  28.  
  29. <!-- Access log processes all example.
  30. Documentation at: /docs/config/valve.html
  31. Note: The pattern used is equivalent to using pattern="common" -->
  32. <Valve className="org.apache.catalina.valves.SyslogAccessLogValve"
  33. hostname="localhost"
  34. facility="local6"
  35. pattern="common"
  36. resolveHosts="false"/>
  37.  
  38. mag@tomcat:~$ cat /etc/default/tomcat7
  39. # Run Tomcat as this user ID. Not setting this or leaving it blank will use the
  40. # default of tomcat7.
  41. TOMCAT7_USER=tomcat7
  42.  
  43. # Run Tomcat as this group ID. Not setting this or leaving it blank will use
  44. # the default of tomcat7.
  45. TOMCAT7_GROUP=tomcat7
  46.  
  47. # The home directory of the Java development kit (JDK). You need at least
  48. # JDK version 1.5. If JAVA_HOME is not set, some common directories for
  49. # OpenJDK, the Sun JDK, and various J2SE 1.5 versions are tried.
  50. #JAVA_HOME=/usr/lib/jvm/openjdk-6-jdk
  51.  
  52. # You may pass JVM startup parameters to Java here. If unset, the default
  53. # options will be: -Djava.awt.headless=true -Xmx128m -XX:+UseConcMarkSweepGC
  54. #
  55. # Use "-XX:+UseConcMarkSweepGC" to enable the CMS garbage collector (improved
  56. # response time). If you use that option and you run Tomcat on a machine with
  57. # exactly one CPU chip that contains one or two cores, you should also add
  58. # the "-XX:+CMSIncrementalMode" option.
  59. JAVA_OPTS="-Djava.awt.headless=true -Xmx128m -XX:+UseConcMarkSweepGC -Djavax.net.ssl.keyStore=/etc/ssl/private/keystore.jks -Djavax.net.ssl.keyStorePassword=changeit -Djavax.net.ssl.trustStore=/etc/ssl/private/keystore.jks -Djavax.net.ssl.trustStorePassword=changeit"
  60.  
  61. # workaround so config change can be found in /etc ...
  62. echo export CLASSPATH="/usr/local/lib/tomcat7/agafua.jar" >/usr/share/tomcat7/bin/setenv.sh
  63.  
  64. # To enable remote debugging uncomment the following line.
  65. # You will then be able to use a java debugger on port 8000.
  66. #JAVA_OPTS="${JAVA_OPTS} -Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n"
  67.  
  68. # Java compiler to use for translating JavaServer Pages (JSPs). You can use all
  69. # compilers that are accepted by Ant's build.compiler property.
  70. #JSP_COMPILER=javac
  71.  
  72. # Use the Java security manager? (yes/no, default: no)
  73. #TOMCAT7_SECURITY=no
  74.  
  75. # Number of days to keep logfiles in /var/log/tomcat7. Default is 14 days.
  76. #LOGFILE_DAYS=14
  77. # Whether to compress logfiles older than today's
  78. #LOGFILE_COMPRESS=1
  79.  
  80. # Location of the JVM temporary directory
  81. # WARNING: This directory will be destroyed and recreated at every startup !
  82. #JVM_TMP=/tmp/tomcat7-temp
  83.  
  84. # If you run Tomcat on port numbers that are all higher than 1023, then you
  85. # do not need authbind. It is used for binding Tomcat to lower port numbers.
  86. # NOTE: authbind works only with IPv4. Do not enable it when using IPv6.
  87. # (yes/no, default: no)
  88. #AUTHBIND=no
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement