2 * (c) Oleg Puchinin 2006
3 * graycardinalster@gmail.com
10 int log_write (char *log_name
, char *log_str
)
16 sprintf (buf
, "/home/oleg/bob_%s.log", log_name
);
17 myfile
= fopen (buf
, "a");
22 fprintf (myfile
, "%s - %s\n", ts
, log_str
);
28 int log_globals (char *file
, int type
, int size
)
31 sprintf (buf
, "file=%s type=%i size=%i", file
, type
, size
);
32 return log_write ("globals", buf
);
38 sprintf (str
, "home=%s tmp_files=%s tmp_tags=%s",
39 ENV
->home_dir
, ENV
->tmp_files
, ENV
->tmp_tags
);
40 return log_write ("init", str
);
44 int log_write (char *log_name
, char *log_str
)
49 int log_globals (char *file
, int type
, int size
)