aboutsummaryrefslogtreecommitdiff
path: root/src/multilogtext.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2006-05-04 08:32:59 +0000
committerMike Buland <eichlan@xagasoft.com>2006-05-04 08:32:59 +0000
commit45b0d6d941c95ab28a143b6a78ac5c2d99b6bc4f (patch)
tree5c945401052f63252dd47b170272c0cf65fba467 /src/multilogtext.cpp
parent5c30c56085b267796f2bc56690e2beaf8f9557a4 (diff)
downloadlibbu++-45b0d6d941c95ab28a143b6a78ac5c2d99b6bc4f.tar.gz
libbu++-45b0d6d941c95ab28a143b6a78ac5c2d99b6bc4f.tar.bz2
libbu++-45b0d6d941c95ab28a143b6a78ac5c2d99b6bc4f.tar.xz
libbu++-45b0d6d941c95ab28a143b6a78ac5c2d99b6bc4f.zip
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.
Diffstat (limited to 'src/multilogtext.cpp')
-rw-r--r--src/multilogtext.cpp8
1 files changed, 4 insertions, 4 deletions
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 @@
5#include <time.h> 5#include <time.h>
6#include <string.h> 6#include <string.h>
7#include "multilogtext.h" 7#include "multilogtext.h"
8 8/*
9bool fileexists( const char *sPath ) 9bool fileexists( const char *sPath )
10{ 10{
11 int nFileDesc = open( sPath, O_RDONLY ); 11 int nFileDesc = open( sPath, O_RDONLY );
@@ -18,12 +18,12 @@ bool fileexists( const char *sPath )
18 close( nFileDesc ); 18 close( nFileDesc );
19 return true; 19 return true;
20 } 20 }
21} 21}*/
22 22
23MultiLogText::MultiLogText( const char *sFileName, const char *lpFormat, bool bRotateLog, int nMaxLogs ) 23MultiLogText::MultiLogText( const char *sFileName, const char *lpFormat, bool bRotateLog, int nMaxLogs )
24{ 24{
25 this->lpFormat = NULL; 25 this->lpFormat = NULL;
26 26 /*
27 if( bRotateLog ) 27 if( bRotateLog )
28 { 28 {
29 if( fileexists( sFileName ) == false ) 29 if( fileexists( sFileName ) == false )
@@ -44,7 +44,7 @@ MultiLogText::MultiLogText( const char *sFileName, const char *lpFormat, bool bR
44 break; 44 break;
45 } 45 }
46 } 46 }
47 } 47 }*/
48 48
49 nFD = open( sFileName, O_WRONLY|O_CREAT|O_TRUNC, S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH ); 49 nFD = open( sFileName, O_WRONLY|O_CREAT|O_TRUNC, S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH );
50 setLogFormat( lpFormat ); 50 setLogFormat( lpFormat );