Issue:
How can I adjust logging levels in Fusion?
Environment:
Fusion 2.x, 3.x, 4x
Resolution:
Fusion uses Apache Log4j 2 for logging and is configured using jetty/{connectors,api,ui}/resources/log4j2.xml . Apache Log4j 2 is an upgrade to Log4j that provides significant improvements over its predecessor, Log4j 1.x, and provides many of the improvements available in Logback while fixing some inherent problems in Logback's architecture.
During initialization, Log4J 2 will resolve this to a path based on the fusion components property [connectors, ui, api, and solr]. You can customize the -Dlog4j.configurationFile file, just edit one of Fusion components under bin folder.
For example; Edit connectors under bin folder
Log4j will first attempt to configure itself from configuration files. A configuration equivalent to the default would look like:
Log levels settings are as follows:
DEBUG designates fine-grained informational events that are most useful to debug a crawl configuration.
TRACE designates fine-grained informational events than DEBUG.
ERROR designates error events that might still allow the crawler to continue running.
FATAL designates very severe error events that will presumably lead the crawler to abort.
INFO designates informational messages that highlight the progress of the crawl at a coarse-grained level.
OFF has the highest possible rank and is intended to turn off logging.
WARN designates potentially harmful situations.
These levels allow you to monitor events of interest at the appropriate granularity without being overwhelmed by messages that are not relevant. When you are initially setting up your crawl configuration, you might want to use the DEBUG level to get all messages, and change to a less verbose level in
Cause:
Comments
2 comments
"just edit one of Fusion components under bin folder. For example; Edit connectors under bin folder" is relatively unhelpful. Where is this bin folder located? Does this apply to Fusion 5.x? If the files are edited and the log levels change, is a restart of the component required? The only thing that looks like it might control the logging is the application.yml file in the /app directory on a given pod (in this case, the api-gateway).
Can you provide a step-by-step to update the logging levels for components in Fusion 5.x?
Hey Drew! Thanks for your comment-I will follow up internally here with our teams and get a better step-by-step guide for you! I'll ping you back here once I know more specifics!
Please sign in to leave a comment.