Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 5239e17 in mainline


Ignore:
Timestamp:
2012-08-17T11:04:53Z (9 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master
Children:
90dc458
Parents:
f08ab0f
Message:

Log to file as well

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/logger/writer.c

    rf08ab0f r5239e17  
    8282            log->full_name, log_level_str(level),
    8383            (const char *) message);
     84        fprintf(log->dest->logfile, "[%s] %s: %s\n",
     85            log->full_name, log_level_str(level),
     86            (const char *) message);
     87        fflush(log->dest->logfile);
    8488
    8589        rc = EOK;
Note: See TracChangeset for help on using the changeset viewer.