aboutsummaryrefslogtreecommitdiff
path: root/src/multilogtext.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-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 );