Muninn
2013-12-10 11:32:51 +08:00
679 # from <linux/sys/syslog.h>:
680 # ======================================================================
681 # priorities/facilities are encoded into a single 32-bit quantity, where
682 # the bottom 3 bits are the priority (0-7) and the top 28 bits are the
683 # facility (0-big number). Both the priorities and the facilities map
684 # roughly one-to-one to strings in the syslogd(8) source code. This
685 # mapping is included in this file.
686 #
687 # priorities (these are ordered)
688
689 LOG_EMERG = 0 # system is unusable
690 LOG_ALERT = 1 # action must be taken immediately
691 LOG_CRIT = 2 # critical conditions
692 LOG_ERR = 3 # error conditions
693 LOG_WARNING = 4 # warning conditions
694 LOG_NOTICE = 5 # normal but significant condition
695 LOG_INFO = 6 # informational
696 LOG_DEBUG = 7 # debug-level messages
python的源码里也是一致的.