Once you create your Log4J configuration file, you specify which configuration file to use by defining the variable LOG4J_VOLTSERVER_PATH before starting the VoltDB database. For example:
$ LOG4J_VOLTSERVER_PATH="$HOME/MyLog4jConfig.properties"
$ voltdb start -H svr1,svr2
There is also a separate and unique default logging configuration file for the Volt client applications, including
the command line utilities sqlcmd, voltadmin, and voltdb. You can
find the default configuration file for the command line utilities at log4j2/console-only.properties
,
in the installation directory. You can create a customized configuration file and apply it by defining the environment
variable LOG4J_CONFIG_PATH before starting the affected utilities. For example:
$ LOG4J_CONFIG_PATH="$HOME/MyCliConfig.properties"
$ sqlcmd