Displaying 1 result from an estimated 1 matches for "init_log".
Did you mean:
init_lex
2012 Jul 19
2
[PATCH] pygrub: add syslog support to pygrub
...s += "(args \"%s\")" % args
return s
-
+
def format_simple(kernel, ramdisk, args, sep):
s = ("kernel %s" % kernel) + sep
if ramdisk:
@@ -693,9 +695,19 @@ def format_simple(kernel, ramdisk, args,
s += sep
return s
+def init_log():
+ logger = logging.getLogger()
+ handler = logging.handlers.SysLogHandler(address=''/dev/log'')
+ file_format = (''[%(asctime)s %(process)d] %(levelname)s ''
+ ''(%(module)s:%(lineno)d) %(message)s'')
+ handler.setForm...