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 Documentation@UpdateLogging@UpdateLogging — Changes the logging configuration for a running database. Synopsis@UpdateLogging CString configuration DescriptionThe @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 ValuesReturns one VoltTable with one row.
ExamplesIt is possible to use sqlcmd to update the logging configuration. However, the argument is interpreted as raw XML content rather than as a file specification. Consequently, it can be difficult to use interactively. But you can write the file contents to an input file and then pipe that to sqlcmd, like so: $ echo "exec @UpdateLogging '" > sqlcmd.input $ cat mylog4j.xml >> sqlcmd.input $ echo "';" >> sqlcmd.input $ cat sqlcmd.input | sqlcmd The following program example demonstrates another 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();
}
| ||||||
| 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. |