Project

General

Profile

Bug #454

_openlog

Added by iri over 6 years ago. Updated over 6 years ago.

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 ?

History

#1 Updated by arkeon over 6 years ago

I don't know ^^
this is the way this function has always worked.

Also available in: Atom PDF