Skip to main content

Simflofy Logging

caution

Important information about updating your log4j libraries in response to vulnerability CVE-2021-44228

Stay safe by following this guide on how to update jars to the fixed version


Accessing and Updating the Logging File

Simflofy logging is set in the following file:

[simflofy folder]\WEB-INF\classes\log4j.properties

You can set the log level of all Simflofy classes by changing the following:

log4j.logger.com.simflofy = debug, simflofy-admin

Replace debug with another valid options:

LevelDescription
ALLAll levels including custom levels.
DEBUGDesignates fine-grained informational events that are most useful to debug an application.
ERRORDesignates error events that might still allow the application to continue running.
FATALDesignates very severe error events that will presumably lead the application to abort.
INFODesignates informational messages that highlight the progress of the application at coarse-grained level.
OFFThe highest possible rank and is intended to turn off logging.
TRACEDesignates finer-grained informational events than the DEBUG.
WARNDesignates potentially harmful situations.

In production Simflofy suggests setting logging to the ERROR level.

You'll notice there are other entries, these entries will override the com.simflofy setting for the specific packages they reference.

For example:

log4j.logger.com.simflofy.connectors.sharepoint = trace, simflofy-admin
log4j.additivity.com.simflofy.connectors.sharepoint = false

This sets the SharePoint connector logging to trace. The second line is necessary to prevent double-logging.

Change all trace and debug to error in production if this is what you want. Otherwise, you can mix and match these settings to fit your specific logging needs.


Simflofy Admin Log View

To get a basic view of the log file, the Logging page can be found under the Admin Menu

Admin Logging Sidebar

This page uses the global property simflofy.admin.log.path, with a default value of ${catalina.base}/logs/simflofy-admin.log.

To modify this value edit simflofy-global.properties in the simflofy-admin/WEB-INF/classes directory, for example:

simflofy.admin.log.path=/my/log/directory/logs/simflofy-admin.log

On this page the user can download the complete simflofy-admin.log, as well as filter the last 5000 lines of the log file:

LevelLogs
InfoInfo, Error
DebugInfo, Error, Debug
TraceAll
ErrorError only

You can also set the value simflofy.max.log.size to prevent performance issues. Default is 10 MB. KB and GB are also valid sizes.


Log Levels

On this page you can add or remove log appenders. Both of which are temporary. There is a list of all available connectors if you wish to modify the logging level for an individual connector.

Admin Logging Custom

Related Articles:
Simflofy Administration
Running and Monitoring a Job
Simflofy Global Properties