Package javaforce
Class JFLog
java.lang.Object
javaforce.JFLog
JFLog is a file logger with support for multiple files and optional outputs
to System.out as well.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanstatic booleanstatic booleanclose()static booleanclose(int id) static voidenableTimestamp(boolean state) Uses a timestamp instead of date/time for each message logged.static OutputStreamstatic OutputStreamgetOutputStream(int id) static booleanstatic booleaninit(int id, String filename, boolean append, PrintStream stdout) static booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic voidstatic voidstatic voidsetEnabled(boolean state) static voidsetEnabled(int id, boolean state) static voidsetRetention(int days) static voidsetRetention(int id, int days) static booleanwrite(byte[] data, int off, int len) NOTE: write() doesn't cycle log files.static booleanwrite(int id, byte[] data, int off, int len) NOTE: write() doesn't cycle log files.
-
Constructor Details
-
JFLog
public JFLog()
-
-
Method Details
-
init
-
init
-
init
-
append
-
append
-
setRetention
public static void setRetention(int id, int days) -
setRetention
public static void setRetention(int days) -
close
public static boolean close(int id) -
close
public static boolean close() -
enableTimestamp
public static void enableTimestamp(boolean state) Uses a timestamp instead of date/time for each message logged. -
log
-
log
-
log
-
log
-
log
-
log
-
setEnabled
public static void setEnabled(int id, boolean state) -
setEnabled
public static void setEnabled(boolean state) -
write
public static boolean write(int id, byte[] data, int off, int len) NOTE: write() doesn't cycle log files. -
write
public static boolean write(byte[] data, int off, int len) NOTE: write() doesn't cycle log files. -
getOutputStream
-
getOutputStream
-
logTrace
-
logTrace
-