Skip to main content
Skip table of contents

Logging Configuration

NOTE: In application versions that use older version of Grails the configuration of logback was done using a logback.groovy file. This is no longer possible and configuration must be done through an XML file named logback-spring xml.

External Configuration File

You can instruct Valsights Logback component to use an external configuration file with a system property:

YML
$ ./gradlew -Dlogging.config=/Users/me/config/logback-spring.xml bootRun

In our distribution folder you can simply add the system property to one of the following files, depends on your environment:

  • Windows

    • windowsservice/valsightservice.xml: simply add the property to the tag <arguments></arguments>

    • bin/valsight-server.bat: Add the property to the already declared variable DEFAULT_JVM_OPTS

  • Unix

    • bin/valsight-server: Add the property to the already declared variable DEFAULT_JVM_OPTS

Example logback-spring.xml configuration files:

Configure Logback given the number of days to keep the logs to archived Configure Logback given the size of the files and the number of logs to archive

Download the attached file and configure manually the following parameter to customize the number of days that a log is kept.

DAYS_LOG_FILE_ARCHIVED (line 8)

Download the attached file and configure manually the following parameters to customize the size of the logging file and the number of versions that you want to archive.

SIZE_LOG_FILE (line 8)

NUMBER_LOG_FILE_ARCHIVED (line 9)


Useful links:

Chapter 3: Configuration

Chapter 4: Appenders

83. Logging

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.