Actions
Bug #454
open_openlog
Status:
New
Priority:
Low
Assignee:
-
Category:
VM
Target version:
-
Start date:
03/20/2013
Due date:
% Done:
0%
Estimated time:
Description
When a log file is created by _openlog function, the physical file has a suffix (the first letters of the current month and the day).
By example :
typeof mylog = Logfile;;
fun main ()=
_showconsole;
set mylog = _openlog "myapp/mylog.log" 0 300;
0;;
The file name will be (today)
"myapp/mylog.log.mar20"
In scol/vm/kernel5/src/logger.c :
int LOGcreate(mmachine m)
{
(...)
time_t t;
(...)
name=MMstartstr(m,Name);
time(&t);
strcpy(bufdat,ctime(&t));
nbmots=strdecoupe(bufdat,mots);
sprintf(buf,"%s.%s%s",name,mots[1],mots[2]);
(...)
Why ?
Updated by arkeon over 12 years ago
I don't know ^^
this is the way this function has always worked.
Actions