File System Connector 25.1
File System Connector Help

# Customize Logging

You can customize logging by setting up your own log streams. Each log stream creates a separate log file in which specific log message types (for example, action, index, application, or import) are logged.

To set up log streams

1. Open your configuration file in a text editor.
2. Find the `[Logging]` section. If the configuration file does not contain a `[Logging]` section, add one.

3. In the `[Logging]` section, create a list of the log streams that you want to set up, in the format `N=LogStreamName`. List the log streams in consecutive order, starting from 0 (zero). For example:

       [Logging]
       LogLevel=FULL
       LogDirectory=logs
       0=ApplicationLogStream
       1=ActionLogStream

   You can also use the `[Logging]` section to configure any default values for logging configuration parameters, such as `LogLevel`. For more information, see the File System Connector Reference.

4. Create a new section for each of the log streams. Each section must have the same name as the log stream. For example:

       [ApplicationLogStream]
       [ActionLogStream]

5. Specify the settings for each log stream in the appropriate section. You can specify the type of logging to perform (for example, full logging), whether to display log messages on the console, the maximum size of log files, and so on. For example:

       [ApplicationLogStream]
       LogTypeCSVs=application
       LogFile=application.log
       LogHistorySize=50
       LogTime=True
       LogEcho=False
       LogMaxSizeKBs=1024

       [ActionLogStream]
       LogTypeCSVs=action
       LogFile=logs/action.log
       LogHistorySize=50
       LogTime=True
       LogEcho=False
       LogMaxSizeKBs=1024

6. Save and close the configuration file. Restart the service for your changes to take effect.

Copyright 2024 Open Text
Version 25.1 | Last updated January 2025

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to MFI-swpdl.idoldocsfeedback@opentext.com.

We appreciate your feedback!

Product: Knowledge Discovery File System Connector 25.1

Topic Title: Customize Logging