try {
this.write("", "IDLE");
} catch (Error e) {
- print(e.message + "\n");
+ GLib.debug("%s",e.message);
}
}
this.win = "";
this.win=win;
}
} catch (Error e) {
- print(e.message + "\n");
+ GLib.debug("%s",e.message);
}
this.lastdir = dir;
}
-
+
var fname = now.format("/%d") + ".log";
var path = dir + "/" + fname;
var time = now.format("%H:%M:%S ");
//print("time: " + time + "\n");
var f = File.new_for_path(path);
- FileOutputStream ios = f.append_to (FileCreateFlags.NONE);
+ var ios = f.append_to (FileCreateFlags.NONE);
var data_out = new DataOutputStream (ios);
data_out.put_string("\n" +time + str + " " + cmd, null);
- print(time + str + " " + cmd + "\n");
+ GLib.debug("%s%s %s",time , str , cmd);
data_out.close(null);