GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||
GeezerVison is showing docs.voltdb.com — @UpdateLogging Using VoltDB@UpdateLogging@UpdateLogging — Changes the logging configuration for a running database. Synopsis@UpdateLogging String configuration DescriptionThe @UpdateLogging system procedure lets you change the logging configuration for VoltDB. The argument, configuration, is a text string containing the Log4J XML configuration definition. Calling @UpdateLogging updates the logging configuration for the entire cluster and can include multiple modifications. If you just want to change the logging level of a single component, you can use the @AdjustLogging system procedure or its corresponding voltadmin log4j command. Return ValuesReturns one VoltTable with one row.
ExamplesFrom the command line, the recommended way to update the Log4J configuration is to use the voltadmin log4j command, specifying the location of an updated configuration file. For example: $ voltadmin log4j mylog4j.xml The following program example demonstrates another way to update the logging, using the system procedure and passing the contents of an XML file as the argument: try {
Scanner scan = new Scanner(new File(xmlfilename));
scan.useDelimiter("\\Z");
String content = scan.next();
client.callProcedureSync("@UpdateLogging",content);
}
catch (Exception e) {
e.printStackTrace();
}
| ||||||
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |