config/log4j.lcf.template
author Martin Taal <martin.taal@openbravo.com>
Fri, 19 Dec 2008 23:14:26 +0000
changeset 2432 d9081ec855ca
parent 1738 d8dcb2ecfd14
child 4822 00480773b8bf
permissions -rw-r--r--
fixes issue 6300 log4j messages are now printed to output window
juanpablo@538
     1
# *************************************************************************
juanpablo@538
     2
# * The contents of this file are subject to the Openbravo  Public  License
juanpablo@538
     3
# * Version  1.0  (the  "License"),  being   the  Mozilla   Public  License
juanpablo@538
     4
# * Version 1.1  with a permitted attribution clause; you may not  use this
juanpablo@538
     5
# * file except in compliance with the License. You  may  obtain  a copy of
juanpablo@538
     6
# * the License at http://www.openbravo.com/legal/license.html 
juanpablo@538
     7
# * Software distributed under the License  is  distributed  on  an "AS IS"
juanpablo@538
     8
# * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
juanpablo@538
     9
# * License for the specific  language  governing  rights  and  limitations
juanpablo@538
    10
# * under the License. 
juanpablo@538
    11
# * The Original Code is Openbravo ERP. 
juanpablo@538
    12
# * The Initial Developer of the Original Code is Openbravo SL 
ivan@1738
    13
# * All portions are Copyright (C) 2007-2008 Openbravo SL 
juanpablo@538
    14
# * All Rights Reserved. 
juanpablo@538
    15
# * Contributor(s):  ______________________________________.
juanpablo@538
    16
# ************************************************************************
juanpablo@538
    17
martin@2432
    18
log4j.rootCategory=INFO, R, O1
martin@2432
    19
martin@2432
    20
# Set our global levels
martin@2432
    21
log4j.category.org=WARN
martin@2432
    22
log4j.category.org.openbravo=INFO
martin@2432
    23
martin@2432
    24
# Additional Appender used for apply modules or other cases
martin@2432
    25
log4j.appender.O1=org.openbravo.utils.OBLogAppender
martin@2432
    26
log4j.appender.O1.layout=org.apache.log4j.PatternLayout
martin@2432
    27
log4j.appender.O1.layout.ConversionPattern=%-4r [%t] %-5p %c - %m%n
juanpablo@538
    28
juanpablo@538
    29
log4j.appender.R=org.apache.log4j.RollingFileAppender
juanpablo@539
    30
log4j.appender.R.File=${catalina.base}/logs/openbravo.log
juanpablo@538
    31
log4j.appender.R.MaxFileSize=10000KB
juanpablo@538
    32
juanpablo@538
    33
# R uses PatternLayout.
juanpablo@538
    34
log4j.appender.R.layout=org.apache.log4j.PatternLayout
juanpablo@538
    35
log4j.appender.R.layout.ConversionPattern=%d{HH:mm:ss} [%t] %-5p %c - %m%n
juanpablo@538
    36
juanpablo@538
    37
# Keep one backup file
juanpablo@538
    38
log4j.appender.R.MaxBackupIndex=1
juanpablo@538
    39
juanpablo@538
    40
log4j.category.reloadXml=ERROR
juanpablo@538
    41
juanpablo@538
    42
# To debug an specific class
juanpablo@538
    43
#log4j.category.org.openbravo.erpCommon.ad_process=DEBUG
ivan@1738
    44
ivan@1738
    45
#****************************************************
ivan@1738
    46
# Hibernate
ivan@1738
    47
#****************************************************
ivan@1738
    48
log4j.appender.HB=org.apache.log4j.RollingFileAppender
ivan@1738
    49
log4j.appender.HB.File=${catalina.base}/logs/openbravo_hibernate.log
ivan@1738
    50
log4j.appender.HB.MaxFileSize=10000KB
ivan@1738
    51
ivan@1738
    52
# R uses PatternLayout.
ivan@1738
    53
log4j.appender.HB.layout=org.apache.log4j.PatternLayout
ivan@1738
    54
log4j.appender.HB.layout.ConversionPattern=%d{HH:mm:ss} [%t] %-5p %c - %m%n
ivan@1738
    55
ivan@1738
    56
# Keep one backup file
ivan@1738
    57
log4j.appender.HB.MaxBackupIndex=1
ivan@1738
    58
ivan@1738
    59
log4j.logger.org.hibernate=error, HB
ivan@1738
    60
ivan@1738
    61
### log HQL query parser activity
ivan@1738
    62
#log4j.logger.org.hibernate.hql.ast.AST=error, HB
ivan@1738
    63
ivan@1738
    64
### log just the SQL
ivan@1738
    65
log4j.logger.org.hibernate.SQL=error, HB
ivan@1738
    66
ivan@1738
    67
### log JDBC bind parameters ###
ivan@1738
    68
log4j.logger.org.hibernate.type=error, HB
ivan@1738
    69
ivan@1738
    70
### log schema export/update ###
ivan@1738
    71
log4j.logger.org.hibernate.tool.hbm2ddl=error, HB
ivan@1738
    72
ivan@1738
    73
### log HQL parse trees
ivan@1738
    74
log4j.logger.org.hibernate.hql=error, HB
ivan@1738
    75
ivan@1738
    76
### log cache activity ###
ivan@1738
    77
log4j.logger.org.hibernate.cache=error, HB
ivan@1738
    78
ivan@1738
    79
### log transaction activity
ivan@1738
    80
log4j.logger.org.hibernate.transaction=error, HB
ivan@1738
    81
ivan@1738
    82
### log JDBC resource acquisition
ivan@1738
    83
log4j.logger.org.hibernate.jdbc=error, HB