View source | Discuss this page | Page history | Printable version   
Toolbox
Main Page
Upload file
What links here
Recent changes
Help

PDF Books
Add page
Show collection (0 pages)
Collections help

Search

How To Get Openbravo Logs

Contents

Introduction

Logging allows developers to insert messages when code is executed, this messages can be used to understand different issues in the backend code, such as errors, performance problems, etc.

Openbravo uses log4j to debug.

Configuration

Logging is configured by lo4j.lcf file in Openbravo's config directory.

File

Typically log is redirected to a file. This file is determined by log4j.appender.*.File property. The defaults are:

log4j.appender.R.File=${catalina.base}/logs/openbravo.log
log4j.appender.HB.File=${catalina.base}/logs/openbravo_hibernate.log

With this configuration, regular log will be placed in openbravo.log file in tomcat's log directory and log for hibernate will be in the same directory in openbravo_hibernate.log file.

Log Verbosity

Verbosity in the log is defined by the log levels:

ERROR WARN INFO DEBUG

Developer decides which is the level of each of the messages sent to the log.

It is possible to configure the log to display messages starting from any of these levels. Default configuration shows INFO and above. Log level can be configured globally and/or per class/package.

This can be modified in 2 ways:

Log-config.png

Retrieved from "http://wiki.openbravo.com/wiki/How_To_Get_Openbravo_Logs"

This page has been accessed 12,335 times. This page was last modified on 14 January 2016, at 10:56. Content is available under Creative Commons Attribution-ShareAlike 2.5 Spain License.