![]() |
Grace Software
JavaLog
$Revision: 1.1 $
$Date: 1999/10/11 00:05:14 $
|
$ java -Dlog.handler.name.url=file:filename MyClassThis will cause JavaLog to write all events to filename. Here, filename can be either an absolute filename or a relative filename. Absolute files have a path prefix like /tmp/JavaLog/log.log. Relative paths have no path prefix like log/log.log and are relative to the current directory in which the java program is run.
$ java -Dlog.handler.name.maxsize=size MyClassHere size is a numeric value followed by a size character. For example, the following command line starts
MyClass
logging with a 1500 Kbyte (1.5 Mbyte) max size.
$ java -Dlog.handler.file.maxsize=file:test.log -Dlog.handler.file.maxsize=1500k MyClass