Small file problem
#1

Alright so the problem is quite simple, when I restart the server, new logs are being created. Meaning that old file gets deleted and it starts creating a new one for some reason

This is the code

PHP код:
public TestLog(LogString[]) {
    new 
entry[128],YearMonthDayHourMinuteSecond;
    new 
File:SomeLogFilefopen("Logs/TestLog.log",io_append);
    
getdate(YearMonthDay);
    
gettime(HourMinuteSecond);
    
format(entrysizeof(entry), "\r\n[%02d/%02d/%d][%02d:%02d:%02d]%s",Day,Month,YearHourMinuteSecond,LogString);
    
fwrite(SomeLogFile,entry);
    
fclose(SomeLogFile);
    return 
true;

Reply


Messages In This Thread
Small file problem - by Squirrel - 25.01.2016, 15:49
Re: Small file problem - by K0P - 25.01.2016, 16:49
Re: Small file problem - by Squirrel - 25.01.2016, 19:49
Re: Small file problem - by Sascha - 25.01.2016, 20:53
Re: Small file problem - by Squirrel - 25.01.2016, 21:03
Re: Small file problem - by Vince - 25.01.2016, 21:33

Forum Jump:


Users browsing this thread: 1 Guest(s)