4 * Created on: 05.12.2010
15 void ILogger::log(string s
) {
18 void ILogger::logln(string s
){
22 void SimpleConsoleLogger::log(string s
) {
26 void SimpleConsoleLogger::logln(string s
){
30 SimpleFileLogger::SimpleFileLogger(string out_file
) {
32 myfile
.open (outfile
.c_str(), ios::out
| ios::app
| ios::binary
);
35 SimpleFileLogger::~SimpleFileLogger() {
38 void SimpleFileLogger::logln(string s
) {
43 void SimpleFileLogger::log(string s
) {
48 virtual void log(void* buf, size_t bufsize){
50 mybuf.length = bufsize;
51 memcpy(mybuf.ptr, buf, bufsize);
55 void SimpleFileLogger::clear() {
57 myfile
.open (outfile
.c_str(), ios::out
| ios::trunc
| ios::binary
);
58 //myfile = new File(outfile, File.WriteCreate);