From 45b0d6d941c95ab28a143b6a78ac5c2d99b6bc4f Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Thu, 4 May 2006 08:32:59 +0000 Subject: Removed some extra test functions that were interfering with some other programs. Also disabled auto-log rotation until I can come up with a better way of doing it. --- src/multilog.cpp | 5 ----- src/multilogtext.cpp | 8 ++++---- src/test/log.cpp | 4 ---- 3 files changed, 4 insertions(+), 13 deletions(-) (limited to 'src') diff --git a/src/multilog.cpp b/src/multilog.cpp index 3dfb8b6..143ee89 100644 --- a/src/multilog.cpp +++ b/src/multilog.cpp @@ -6,11 +6,6 @@ #include "multilogchannel.h" -void testlog( const char *text ) -{ - MultiLineLog( 4, text ); -} - MultiLog::MultiLog() { lChannel = new LinkedList(); diff --git a/src/multilogtext.cpp b/src/multilogtext.cpp index daad4c0..4337cc9 100644 --- a/src/multilogtext.cpp +++ b/src/multilogtext.cpp @@ -5,7 +5,7 @@ #include #include #include "multilogtext.h" - +/* bool fileexists( const char *sPath ) { int nFileDesc = open( sPath, O_RDONLY ); @@ -18,12 +18,12 @@ bool fileexists( const char *sPath ) close( nFileDesc ); return true; } -} +}*/ MultiLogText::MultiLogText( const char *sFileName, const char *lpFormat, bool bRotateLog, int nMaxLogs ) { this->lpFormat = NULL; - + /* if( bRotateLog ) { if( fileexists( sFileName ) == false ) @@ -44,7 +44,7 @@ MultiLogText::MultiLogText( const char *sFileName, const char *lpFormat, bool bR break; } } - } + }*/ nFD = open( sFileName, O_WRONLY|O_CREAT|O_TRUNC, S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH ); setLogFormat( lpFormat ); diff --git a/src/test/log.cpp b/src/test/log.cpp index 0420e37..d7cfa0b 100644 --- a/src/test/log.cpp +++ b/src/test/log.cpp @@ -4,8 +4,6 @@ #include "multilog.h" #include "multilogtext.h" -void testlog( const char *text ); - class Test { public: @@ -27,7 +25,5 @@ int main() MultiLineLog( MultiLog::LError, "Hi there!"); Test t; - - testlog("external test"); } -- cgit v1.2.3