config/log4j.lcf.template
author Antonio Moreno <antonio.moreno@openbravo.com>
Thu, 26 Apr 2012 17:29:26 +0200
changeset 16512 46f6c549a415
parent 12818 3d195dab015c
child 20298 b580f0596d0e
permissions -rw-r--r--
Fixed issue 20352. Do not remove an invalid value from the selector.
Reverted change done in changeset bcbda0ffe5d8. This change was causing the following behaviour to happen:
- When a field is used as part of a displaylogic of a different field, a redraw of the window will be done in case the selector value happens.
- This redraw will cause a call to the mapValueToDisplay method.
- If the user is typing the name of the business partner, the value will not be one of the valid business partner names (yet).
- With the previous version of the method, the value was then discarded. This produced the very annoying effect of reverting what the user had typed just after he had done it, if he hadn't been 'fast enough' to type the whole identifier of the business partner.
With the change done, the selector will not be cleared if a user types a (not yet completely correct) value in the selector, even if there is a valueMap which doesn't contain what the user has typed.
The issue which was supposedly fixed with this part of the mentioned changeset (issue 19724) still works fine as far as I can tell, even after having removed this part of the change.
# *************************************************************************
# * The contents of this file are subject to the Openbravo  Public  License
# * Version  1.1  (the  "License"),  being   the  Mozilla   Public  License
# * Version 1.1  with a permitted attribution clause; you may not  use this
# * file except in compliance with the License. You  may  obtain  a copy of
# * the License at http://www.openbravo.com/legal/license.html 
# * Software distributed under the License  is  distributed  on  an "AS IS"
# * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
# * License for the specific  language  governing  rights  and  limitations
# * under the License. 
# * The Original Code is Openbravo ERP. 
# * The Initial Developer of the Original Code is Openbravo SLU
# * All portions are Copyright (C) 2007-2009 Openbravo SLU
# * All Rights Reserved. 
# * Contributor(s):  ______________________________________.
# ************************************************************************

# to enable logging in i.e. eclipse console add ", C" to the line below
log4j.rootCategory=INFO, R

# Set our global levels
log4j.category.org=WARN
log4j.category.org.openbravo=INFO

log4j.appender.R=org.apache.log4j.RollingFileAppender
log4j.appender.R.File=${catalina.base}/logs/openbravo.log
log4j.appender.R.MaxFileSize=10000KB

# R uses PatternLayout.
log4j.appender.R.layout=org.apache.log4j.PatternLayout
log4j.appender.R.layout.ConversionPattern=%d{ISO8601} [%t] %-5p %c - %m%n

# Keep one backup file
log4j.appender.R.MaxBackupIndex=1

# C is an optional ConsoleAppender for usage in i.e. Eclipse
log4j.appender.C=org.apache.log4j.ConsoleAppender
log4j.appender.C.layout=org.apache.log4j.PatternLayout
log4j.appender.C.layout.ConversionPattern=%-4r [%t] %-5p %c - %m%n

log4j.category.reloadXml=ERROR

# To debug an specific class
#log4j.category.org.openbravo.erpCommon.ad_process=DEBUG

#****************************************************
# Hibernate
#****************************************************
log4j.appender.HB=org.apache.log4j.RollingFileAppender
log4j.appender.HB.File=${catalina.base}/logs/openbravo_hibernate.log
log4j.appender.HB.MaxFileSize=10000KB

# R uses PatternLayout.
log4j.appender.HB.layout=org.apache.log4j.PatternLayout
log4j.appender.HB.layout.ConversionPattern=%d{ISO8601} [%t] %-5p %c - %m%n

# Keep one backup file
log4j.appender.HB.MaxBackupIndex=1

log4j.logger.org.hibernate=error, HB

### log HQL query parser activity
#log4j.logger.org.hibernate.hql.ast.AST=error, HB

### log just the SQL
log4j.logger.org.hibernate.SQL=error, HB

### log JDBC bind parameters ###
log4j.logger.org.hibernate.type=error, HB

### log schema export/update ###
log4j.logger.org.hibernate.tool.hbm2ddl=error, HB

### log HQL parse trees
log4j.logger.org.hibernate.hql=error, HB

### log cache activity ###
log4j.logger.org.hibernate.cache=error, HB

### log transaction activity
log4j.logger.org.hibernate.transaction=error, HB

### log JDBC resource acquisition
log4j.logger.org.hibernate.jdbc=error, HB