Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   CentOS (http://www.linux-archive.org/centos/)
-   -   logging: make loader say 'loader' (#563009). (http://www.linux-archive.org/centos/330626-logging-make-loader-say-loader-563009-a.html)

Ales Kozumplik 02-23-2010 12:35 PM

logging: make loader say 'loader' (#563009).
 
---
loader/log.c | 20 ++++++++++----------
1 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/loader/log.c b/loader/log.c
index 01abae8..9e83fea 100644
--- a/loader/log.c
+++ b/loader/log.c
@@ -76,28 +76,28 @@ static void printLogHeader(int level, FILE *outfile) {
msecs = current_time.tv_usec / 1000;
switch (level) {
case DEBUGLVL:
- fprintf (outfile, "%02d:%02d:%02d,%03d DEBUG : ", t->tm_hour,
- t->tm_min, t->tm_sec, msecs);
+ fprintf (outfile, "%02d:%02d:%02d,%03d DEBUG %s: ", t->tm_hour,
+ t->tm_min, t->tm_sec, msecs, syslog_facility);
break;

case INFO:
- fprintf (outfile, "%02d:%02d:%02d,%03d INFO : ", t->tm_hour,
- t->tm_min, t->tm_sec, msecs);
+ fprintf (outfile, "%02d:%02d:%02d,%03d INFO %s: ", t->tm_hour,
+ t->tm_min, t->tm_sec, msecs, syslog_facility);
break;

case WARNING:
- fprintf (outfile, "%02d:%02d:%02d,%03d WARNING : ", t->tm_hour,
- t->tm_min, t->tm_sec, msecs);
+ fprintf (outfile, "%02d:%02d:%02d,%03d WARNING %s: ", t->tm_hour,
+ t->tm_min, t->tm_sec, msecs, syslog_facility);
break;

case ERROR:
- fprintf (outfile, "%02d:%02d:%02d,%03d ERROR : ", t->tm_hour,
- t->tm_min, t->tm_sec, msecs);
+ fprintf (outfile, "%02d:%02d:%02d,%03d ERROR %s: ", t->tm_hour,
+ t->tm_min, t->tm_sec, msecs, syslog_facility);
break;

case CRITICAL:
- fprintf (outfile, "%02d:%02d:%02d,%03d CRITICAL: ", t->tm_hour,
- t->tm_min, t->tm_sec, msecs);
+ fprintf (outfile, "%02d:%02d:%02d,%03d CRITICAL %s: ", t->tm_hour,
+ t->tm_min, t->tm_sec, msecs, syslog_facility);
break;
}
}
--
1.6.6

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


All times are GMT. The time now is 05:46 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.