Advertisement
elwin_jusuf

log4j.properties

Oct 21st, 2016
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.26 KB | None | 0 0
  1. log.directory=/home/sts/logs
  2.  
  3. #Set the level of the root loger to DEBUG and set its appender
  4. log4j.rootCategory = DEBUG, CONSOLE, DAILY
  5.  
  6. log4j.logger.com.dappit.Dapper.parser=ERROR
  7. log4j.logger.org.w3c.tidy=FATAL
  8. log4j.logger.com.dappit.Dapper.parser=ERROR
  9. log4j.logger.org.w3c.tidy=FATAL
  10. log4j.logger.org.dbunit.AbstractDatabaseTester=ERROR
  11. log4j.logger.org.dbunit.database.AbstractDatabaseConnection=ERROR
  12. log4j.logger.org.dbunit.database.DatabaseConfig=ERROR
  13. log4j.logger.org.dbunit.database.DatabaseConnection=ERROR
  14. log4j.logger.org.dbunit.database.DatabaseDataSet=ERROR
  15. log4j.logger.org.dbunit.database.DatabaseTableMetaData=ERROR
  16. log4j.logger.org.dbunit.database.DefaultMetadataHandler=ERROR
  17. log4j.logger.org.dbunit.database.statement.AbstractBatchStatement=ERROR
  18. log4j.logger.org.dbunit.database.statement.AbstractPreparedBatchStatement=ERROR
  19. log4j.logger.org.dbunit.database.statement.AbstractStatementFactory=ERROR
  20. log4j.logger.org.dbunit.database.statement.AutomaticPreparedBatchStatement=ERROR
  21. log4j.logger.org.dbunit.database.statement.PreparedStatementFactory=ERROR
  22. log4j.logger.org.dbunit.database.statement.SimplePreparedStatement=ERROR
  23. log4j.logger.org.dbunit.database.statement.SimpleStatement=ERROR
  24. log4j.logger.org.dbunit.dataset.AbstractDataSet=ERROR
  25. log4j.logger.org.dbunit.dataset.AbstractTable=ERROR
  26. log4j.logger.org.dbunit.dataset.AbstractTableMetaData=ERROR
  27. log4j.logger.org.dbunit.dataset.CachedDataSet=ERROR
  28. log4j.logger.org.dbunit.dataset.Column=ERROR
  29. log4j.logger.org.dbunit.dataset.Columns=ERROR
  30. log4j.logger.org.dbunit.dataset.CompositeDataSet=ERROR
  31. log4j.logger.org.dbunit.dataset.datatype.AbstractDataType=ERROR
  32. log4j.logger.org.dbunit.dataset.datatype.DataType=ERROR
  33. log4j.logger.org.dbunit.dataset.datatype.DefaultDataTypeFactory=ERROR
  34. log4j.logger.org.dbunit.dataset.datatype.DoubleDataType=ERROR
  35. log4j.logger.org.dbunit.dataset.datatype.IntegerDataType=ERROR
  36. log4j.logger.org.dbunit.dataset.datatype.LongDataType=ERROR
  37. log4j.logger.org.dbunit.dataset.datatype.StringDataType=ERROR
  38. log4j.logger.org.dbunit.dataset.DefaultTable=ERROR
  39. log4j.logger.org.dbunit.dataset.DefaultTableIterator=ERROR
  40. log4j.logger.org.dbunit.dataset.OrderedTableNameMap=ERROR
  41. log4j.logger.org.dbunit.dataset.ReplacementDataSet$ReplacementIterator=ERROR
  42. log4j.logger.org.dbunit.dataset.ReplacementDataSet=ERROR
  43. log4j.logger.org.dbunit.dataset.ReplacementTable=ERROR
  44. log4j.logger.org.dbunit.dataset.xml.FlatDtdProducer=ERROR
  45. log4j.logger.org.dbunit.dataset.xml.FlatXmlProducer=ERROR
  46. log4j.logger.org.dbunit.DefaultOperationListener=ERROR
  47. log4j.logger.org.dbunit.ext.db2.Db2DataTypeFactory=ERROR
  48. log4j.logger.org.dbunit.operation.AbstractBatchOperation=ERROR
  49. log4j.logger.org.dbunit.operation.AbstractOperation=ERROR
  50. log4j.logger.org.dbunit.operation.CompositeOperation=ERROR
  51. log4j.logger.org.dbunit.operation.DeleteAllOperation=ERROR
  52. log4j.logger.org.dbunit.operation.InsertOperation=ERROR
  53. log4j.logger.org.dbunit.util.QualifiedTableName=ERROR
  54. log4j.logger.org.dbunit.util.SQLHelper=ERROR
  55. log4j.logger.org.hibernate.annotations.common.Version=ERROR
  56. log4j.logger.org.hibernate.cfg.AnnotationBinder=ERROR
  57. log4j.logger.org.hibernate.cfg.annotations.EntityBinder=ERROR
  58. log4j.logger.org.hibernate.cfg.annotations.PropertyBinder=ERROR
  59. log4j.logger.org.hibernate.cfg.annotations.SimpleValueBinder=ERROR
  60. log4j.logger.org.hibernate.cfg.Configuration=ERROR
  61. log4j.logger.org.hibernate.cfg.Ejb3Column=ERROR
  62. log4j.logger.org.hibernate.cfg.Environment=ERROR
  63. log4j.logger.org.hibernate.cfg.search.HibernateSearchEventListenerRegister=ERROR
  64. log4j.logger.org.hibernate.cfg.SettingsFactory=ERROR
  65. log4j.logger.org.hibernate.connection.DriverManagerConnectionProvider=ERROR
  66. log4j.logger.org.hibernate.dialect.Dialect=ERROR
  67. log4j.logger.org.hibernate.ejb.Ejb3Configuration=ERROR
  68. log4j.logger.org.hibernate.ejb.packaging.AbstractJarVisitor=ERROR
  69. log4j.logger.org.hibernate.ejb.util.NamingHelper=ERROR
  70. log4j.logger.org.hibernate.ejb.Version=ERROR
  71. log4j.logger.org.hibernate.engine.jdbc.JdbcSupportLoader=ERROR
  72. log4j.logger.org.hibernate.engine.StatefulPersistenceContext=ERROR
  73. log4j.logger.org.hibernate.engine.TwoPhaseLoad=ERROR
  74. log4j.logger.org.hibernate.event.def.AbstractFlushingEventListener=ERROR
  75. log4j.logger.org.hibernate.hql.antlr.HqlSqlBaseWalker=ERROR
  76. log4j.logger.org.hibernate.hql.ast.AST=ERROR
  77. log4j.logger.org.hibernate.hql.ast.ASTQueryTranslatorFactory=ERROR
  78. log4j.logger.org.hibernate.hql.ast.ErrorCounter=ERROR
  79. log4j.logger.org.hibernate.hql.ast.HqlSqlWalker=ERROR
  80. log4j.logger.org.hibernate.hql.ast.QueryTranslatorImpl=ERROR
  81. log4j.logger.org.hibernate.hql.ast.tree.DotNode=ERROR
  82. log4j.logger.org.hibernate.hql.ast.tree.FromElement=ERROR
  83. log4j.logger.org.hibernate.hql.ast.tree.FromReferenceNode=ERROR
  84. log4j.logger.org.hibernate.hql.ast.util.JoinProcessor=ERROR
  85. log4j.logger.org.hibernate.id.factory.DefaultIdentifierGeneratorFactory=ERROR
  86. log4j.logger.org.hibernate.impl.SessionFactoryImpl=ERROR
  87. log4j.logger.org.hibernate.impl.SessionFactoryObjectFactory=ERROR
  88. log4j.logger.org.hibernate.impl.SessionImpl=ERROR
  89. log4j.logger.org.hibernate.jdbc.AbstractBatcher=ERROR
  90. log4j.logger.org.hibernate.jdbc.ConnectionManager=ERROR
  91. log4j.logger.org.hibernate.loader.entity.EntityLoader=ERROR
  92. log4j.logger.org.hibernate.loader.Loader=ERROR
  93. log4j.logger.org.hibernate.mapping.RootClass=ERROR
  94. log4j.logger.org.hibernate.persister.entity.AbstractEntityPersister=ERROR
  95. log4j.logger.org.hibernate.pretty.Printer=ERROR
  96. log4j.logger.org.hibernate.SQL=ERROR
  97. log4j.logger.org.hibernate.transaction.JDBCTransaction=ERROR
  98. log4j.logger.org.hibernate.transaction.TransactionFactoryFactory=ERROR
  99. log4j.logger.org.hibernate.transaction.TransactionManagerLookupFactory=ERROR
  100. log4j.logger.org.hibernate.type.BasicTypeRegistry=ERROR
  101. log4j.logger.org.jlego.core.test.SpringDbUnitTestExecutionListener=ERROR
  102. log4j.logger.org.springframework.aop.framework.autoproxy.InfrastructureAdvisorAutoProxyCreator=ERROR
  103. log4j.logger.org.springframework.aop.framework.JdkDynamicAopProxy=ERROR
  104. log4j.logger.org.springframework.beans.BeanUtils=ERROR
  105. log4j.logger.org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor=ERROR
  106. log4j.logger.org.springframework.beans.factory.annotation.InjectionMetadata=ERROR
  107. log4j.logger.org.springframework.beans.factory.config.PropertyPlaceholderConfigurer=ERROR
  108. log4j.logger.org.springframework.beans.factory.support.DefaultListableBeanFactory=ERROR
  109. log4j.logger.org.springframework.beans.factory.support.DisposableBeanAdapter=ERROR
  110. log4j.logger.org.springframework.beans.factory.xml.BeanDefinitionParserDelegate=ERROR
  111. log4j.logger.org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader=ERROR
  112. log4j.logger.org.springframework.beans.factory.xml.DefaultDocumentLoader=ERROR
  113. log4j.logger.org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver=ERROR
  114. log4j.logger.org.springframework.beans.factory.xml.PluggableSchemaResolver=ERROR
  115. log4j.logger.org.springframework.beans.factory.xml.XmlBeanDefinitionReader=ERROR
  116. log4j.logger.org.springframework.context.annotation.ClassPathBeanDefinitionScanner=ERROR
  117. log4j.logger.org.springframework.context.support.GenericApplicationContext=ERROR
  118. log4j.logger.org.springframework.core.io.support.PathMatchingResourcePatternResolver=ERROR
  119. log4j.logger.org.springframework.jdbc.core.JdbcTemplate=ERROR
  120. log4j.logger.org.springframework.jdbc.datasource.DriverManagerDataSource=ERROR
  121. log4j.logger.org.springframework.orm.jpa.EntityManagerFactoryUtils=ERROR
  122. log4j.logger.org.springframework.orm.jpa.JpaTransactionManager=ERROR
  123. log4j.logger.org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean=ERROR
  124. log4j.logger.org.springframework.orm.jpa.SharedEntityManagerCreator$SharedEntityManagerInvocationHandler=ERROR
  125. log4j.logger.org.springframework.test.annotation.ProfileValueUtils=ERROR
  126. log4j.logger.org.springframework.test.context.junit4.SpringJUnit4ClassRunner=ERROR
  127. log4j.logger.org.springframework.test.context.support.AbstractGenericContextLoader=ERROR
  128. log4j.logger.org.springframework.test.context.support.DependencyInjectionTestExecutionListener=ERROR
  129. log4j.logger.org.springframework.test.context.support.DirtiesContextTestExecutionListener=ERROR
  130. log4j.logger.org.springframework.test.context.transaction.TransactionalTestExecutionListener=ERROR
  131. log4j.logger.org.springframework.transaction.annotation.AnnotationTransactionAttributeSource=ERROR
  132. log4j.logger.org.springframework.ui.context.support.UiApplicationContextUtils=ERROR
  133. log4j.logger.org.springframework.web.context.ContextLoader=ERROR
  134. log4j.logger.org.springframework.web.context.support.XmlWebApplicationContext=ERROR
  135. log4j.logger.org.dbunit.dataset.datatype=ERROR
  136. log4j.logger.com.dappit.Dapper.parser=ERROR
  137. log4j.logger.org.w3c.tidy=FATAL
  138.  
  139. # CONSOLE - Console Appender
  140. log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
  141.  
  142. #set the layout for the appender
  143. log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
  144. log4j.appender.CONSOLE.layout.conversionPattern=%d{yyyy-MM-dd HH:mm:ss.SSS} [%p] %c:%L - %m%n
  145.  
  146.  
  147. # FILE - File Appender
  148. #log4j.appender.FILE=org.apache.log4j.FileAppender
  149. #log4j.appender.FILE.File=logs/jleaf.log
  150.  
  151. # Define the layout for file appender
  152. #log4j.appender.FILE.layout=org.apache.log4j.PatternLayout
  153. #log4j.appender.FILE.layout.conversionPattern=%m%n
  154.  
  155. # DAILY - DailyRollingFile Appender
  156. log4j.appender.DAILY=org.apache.log4j.DailyRollingFileAppender
  157. log4j.appender.DAILY.File=${log.directory}/master-service.log
  158. log4j.appender.DAILY.DatePattern='.'yyyy-MM-dd
  159.  
  160. # Define the layout for DAILY file appender
  161. log4j.appender.DAILY.layout=org.apache.log4j.PatternLayout
  162. log4j.appender.DAILY.layout.conversionPattern=%d{yyyy-MM-dd HH:mm:ss.SSS} [%p] %c:%L - %m%n
  163.  
  164. # Rolling file appender in HTML
  165. #------------------------------------------------------------------------------
  166. #
  167. # The following properties configure the Rolling File appender in HTML.
  168. # See http://logging.apache.org/log4j/docs/api/index.html for details.
  169. #
  170. #------------------------------------------------------------------------------
  171. log4j.appender.HTML = org.apache.log4j.RollingFileAppender
  172. log4j.appender.HTML.File = ${log.directory}/master-service.html
  173. log4j.appender.HTML.MaxFileSize = 100KB
  174. log4j.appender.HTML.Append = false
  175. log4j.appender.HTML.layout = org.apache.log4j.HTMLLayout
  176. log4j.appender.HTML.layout.conversionPattern=%d{yyyy-MM-dd HH:mm:ss.SSS} [%p] %c:%L - %m%n
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement