@AdjustLogging — Changes the logging level for a Volt component.
@AdjustLogging String component, String level
The @AdjustLogging system procedure lets you change the logging level for a specific logging component in VoltDB. The first argument, component, is the Volt component you want to modify and the second argument, level, is the new logging level. You can also adjust the logging level using the voltadmin log4j command with the syntax component=level as a single text string with no spaces. For example:
$ voltadmin log4j snapshot=warn
Returns one VoltTable with one row.
Name | Datatype | Description |
---|---|---|
STATUS | BIGINT | Always returns the value zero (0) indicating success. |
From the command line, the recommended way to adjust the logging level is to use the voltadmin log4j command, specifying the logging component and new logging level as arguments. For example, the following command changes the logging level of export messages to debug or higher.
$ voltadmin log4j export=debug
The following program example demonstrates how to make the same adjustment to the logging level using the system procedure in Java:
try { client.callProcedureSync("@AdjustLogging","export","debug"); } catch (Exception e) { e.printStackTrace(); }