config/log4j.lcf.template
author Shankar Balachandran <shankar.balachandran@openbravo.com>
Mon, 27 May 2013 19:16:03 +0530
changeset 20472 d8cc7de67a13
parent 20350 1143dac7c18c
child 20502 1693de72b307
permissions -rw-r--r--
Fixes Issue 0023915: Java class name for a table cannot contain spaces

Added business event handler to validate that java class name in tables cannot contain spaces.
juanpablo@538
     1
# *************************************************************************
juanpablo@538
     2
# * The contents of this file are subject to the Openbravo  Public  License
priya@9085
     3
# * Version  1.1  (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. 
ggi@6702
    12
# * The Initial Developer of the Original Code is Openbravo SLU
shankar@20350
    13
# * All portions are Copyright (C) 2007-2013 Openbravo SLU
juanpablo@538
    14
# * All Rights Reserved. 
juanpablo@538
    15
# * Contributor(s):  ______________________________________.
juanpablo@538
    16
# ************************************************************************
juanpablo@538
    17
juanpablo@4833
    18
# to enable logging in i.e. eclipse console add ", C" to the line below
antonio@5615
    19
log4j.rootCategory=INFO, R
martin@2432
    20
martin@2432
    21
# Set our global levels
martin@2432
    22
log4j.category.org=WARN
martin@2432
    23
log4j.category.org.openbravo=INFO
shankar@20349
    24
log4j.category.net.sf.jasperreports=ERROR
martin@2432
    25
juanpablo@538
    26
log4j.appender.R=org.apache.log4j.RollingFileAppender
juanpablo@539
    27
log4j.appender.R.File=${catalina.base}/logs/openbravo.log
juanpablo@538
    28
log4j.appender.R.MaxFileSize=10000KB
juanpablo@538
    29
juanpablo@538
    30
# R uses PatternLayout.
juanpablo@538
    31
log4j.appender.R.layout=org.apache.log4j.PatternLayout
stefan@12880
    32
log4j.appender.R.layout.ConversionPattern=%d{ISO8601} [%t] %-5p %c - %m%n
juanpablo@538
    33
juanpablo@538
    34
# Keep one backup file
juanpablo@538
    35
log4j.appender.R.MaxBackupIndex=1
juanpablo@538
    36
juanpablo@4833
    37
# C is an optional ConsoleAppender for usage in i.e. Eclipse
juanpablo@4833
    38
log4j.appender.C=org.apache.log4j.ConsoleAppender
juanpablo@4833
    39
log4j.appender.C.layout=org.apache.log4j.PatternLayout
juanpablo@4833
    40
log4j.appender.C.layout.ConversionPattern=%-4r [%t] %-5p %c - %m%n
juanpablo@4833
    41
juanpablo@538
    42
log4j.category.reloadXml=ERROR
juanpablo@538
    43
juanpablo@538
    44
# To debug an specific class
juanpablo@538
    45
#log4j.category.org.openbravo.erpCommon.ad_process=DEBUG
ivan@1738
    46
ivan@1738
    47
#****************************************************
ivan@1738
    48
# Hibernate
ivan@1738
    49
#****************************************************
ivan@1738
    50
log4j.appender.HB=org.apache.log4j.RollingFileAppender
ivan@1738
    51
log4j.appender.HB.File=${catalina.base}/logs/openbravo_hibernate.log
ivan@1738
    52
log4j.appender.HB.MaxFileSize=10000KB
ivan@1738
    53
ivan@1738
    54
# R uses PatternLayout.
ivan@1738
    55
log4j.appender.HB.layout=org.apache.log4j.PatternLayout
stefan@12880
    56
log4j.appender.HB.layout.ConversionPattern=%d{ISO8601} [%t] %-5p %c - %m%n
ivan@1738
    57
ivan@1738
    58
# Keep one backup file
ivan@1738
    59
log4j.appender.HB.MaxBackupIndex=1
ivan@1738
    60
ivan@1738
    61
log4j.logger.org.hibernate=error, HB
ivan@1738
    62
ivan@1738
    63
### log HQL query parser activity
ivan@1738
    64
#log4j.logger.org.hibernate.hql.ast.AST=error, HB
ivan@1738
    65
ivan@1738
    66
### log just the SQL
ivan@1738
    67
log4j.logger.org.hibernate.SQL=error, HB
ivan@1738
    68
ivan@1738
    69
### log JDBC bind parameters ###
ivan@1738
    70
log4j.logger.org.hibernate.type=error, HB
ivan@1738
    71
ivan@1738
    72
### log schema export/update ###
ivan@1738
    73
log4j.logger.org.hibernate.tool.hbm2ddl=error, HB
ivan@1738
    74
ivan@1738
    75
### log HQL parse trees
ivan@1738
    76
log4j.logger.org.hibernate.hql=error, HB
ivan@1738
    77
ivan@1738
    78
### log cache activity ###
ivan@1738
    79
log4j.logger.org.hibernate.cache=error, HB
ivan@1738
    80
ivan@1738
    81
### log transaction activity
ivan@1738
    82
log4j.logger.org.hibernate.transaction=error, HB
ivan@1738
    83
ivan@1738
    84
### log JDBC resource acquisition
ivan@1738
    85
log4j.logger.org.hibernate.jdbc=error, HB