FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > CentOS > CentOS

 
 
LinkBack Thread Tools
 
Old 02-23-2010, 12:35 PM
Ales Kozumplik
 
Default 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
 

Thread Tools




All times are GMT. The time now is 10:26 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org