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/multilogtext.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/multilogtext.cpp') 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 ); -- cgit v1.2.3