1.1

Table Of Contents
Chapter 43
Configuring and Using SQLFire Log Files
By default SQLFire creates a log le named sqlfserver.log in the current directory when you start a server
programmatically or using the sqlf utility. SQLFire creates a log le named sqlflocator.log in the current
working directory when you start a locator.
You can specify the name and location of the log le by using the JDBC boot property log-file when you start a
server or locator. For example:
sqlf server start -log-file=/home/user1/log/mysqlflog.log
Log Message Format
Each message in a server or locator log le contains the severity level, timestamp, and other important information.
A SQLFire log message contains:
Severity level of the message.
Time that the message was logged.
ID of the thread that logged the message.
Body of the log message, which can be a string and/or an exception that includes the exception stack trace.
The following shows an example log entry.
[config 2011/05/24 17:19:45.705 IST <main> tid=0x1] This VM is setup with
SQLFire datastore role.
Severity Levels
You can congure the logging system to record only those messages that are at or above a specied logging
level. By default, the logging level is set to "cong", which means that the system logs messages at cong, info,
warning, error, and severe severity levels.
If you are having problems with your system, rst lower the log-level (recording more of detailed messages to
the log le) and recreate the problem. The additional log messages often help uncover the source.
To specify the logging level, use the log-level property when you start a SQLFire server or locator. For
example, to record all messages at log level "warning," "error," or "severe:"
sqlf server start -log-file=/home/user1/log/mysqlflog.log -log-level=warning
The table shows log levels from highest to lowest severity.
257