Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents
absoluteUrltrue
printablefalse

...

In order to enable logs you can set the following parameters as environment variables or when using as javaagent add them as -Dsl.* parameters

ParameterDescription
sl.log.level

Sets the log level to one of the following: "off", "error", "warn", "info", "debug"

sl.log.toConsole
Set to true to enable log output to the console
sl.log.toFile

Set to true to enable log output to a file

sl.log.folder
Provide a folder to save the log files in
sl.log.filename
Provide the name of the log file
sl.log.count
Limit the number of log files to create. Default: 10
sl.log.limit
Limit the size of the log file in megabytes (MB). Default value is 10 (i.e. 10*1024 KB)
--add-opens=java.base/jdk.internal.loader=ALL-UNNAMED

Special JVM parameter to allow logging in Java 9 and later in addition to -Dsl.log.* above. 
If the option is not provided, the test listener will work as usual, but logging will not work.