|
|
Login/Register | Contact Us | 1+ 978-528-4660 |
@UpdateLogging
@UpdateLogging
@UpdateLogging — Changes the logging configuration for a running database.
Synopsis
ClientResponse client.callProcedure("@UpdateLogging", String
configuration)
Description
The @UpdateLogging system procedure lets you change the logging configuration for VoltDB. The second argument,
configuration, is a text string containing the Log4J XML configuration definition.
Return Values
Returns one VoltTable with one row.
| Name | Datatype | Description |
|---|---|---|
| STATUS | BIGINT | Always returns the value zero (0) indicating success. |
Example
The following example shows one way to update the logging using the contents of an XML file (identified by the string xmlfilename) .
try {
Scanner scan = new Scanner(new File(xmlfilename));
scan.useDelimiter("\\Z");
String content = scan.next();
client.callProcedure("@UpdateLogging",content);
}
catch (Exception e) {
e.printStackTrace();
}
copyright 2012 VoltDB, Inc.
- Printer-friendly version
- Login or register to post comments
