19 package com.generalrobotix.ui.util;
21 import java.io.FileOutputStream;
22 import java.io.OutputStreamWriter;
23 import java.util.logging.*;
32 System.out.println(
"debug on (message logging level : INFO)");
33 logger.setLevel(Level.INFO);
35 System.out.println(
"message logging level : SEVERE");
36 logger.setLevel(Level.SEVERE);
40 public static void print(String s){
41 if (isDebugging_ ==
true)
46 if (isDebugging_ ==
true)
47 System.out.println(s);
51 if (isDebugging_ ==
true)
52 System.err.println(s);
55 public static void printErr(String s,Exception e) {
56 if (isDebugging_ ==
true){
57 System.err.println(s);
62 public static void outputLogFile(String path, String s ,
boolean bAppend){
64 FileOutputStream logFileStream =
new FileOutputStream(path, bAppend);
65 OutputStreamWriter logFileOut =
new OutputStreamWriter(logFileStream,
"UTF-8");
66 logFileOut.write(s +
"\n");
69 }
catch (Exception e){
static void outputLogFile(String path, String s, boolean bAppend)
static void printErr(String s)
static boolean isDebugging_
static void setDebugFlag(boolean flag)
static boolean isDebugging()
static void printErr(String s, Exception e)
static void println(String s)
::OutPortBase::Logger logger
png_infop png_uint_32 flag
static void print(String s)
static void outputLogFile(String path, String s)