mirror of
https://github.com/libvirt/libvirt.git
synced 2026-10-02 12:20:06 -05:00
logging: Make log regexp more compact (and readable)
This commit is contained in:
1 parent
6d1b3edc6e
commit
fd2e55302b
1 file changed
+2
-2
+2
-2
@@ -79,8 +79,8 @@ static int virLogEnd = 0;
|
||||
static regex_t *virLogRegex = NULL;
|
||||
|
||||
|
||||
#define VIR_LOG_DATE_REGEX "[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]"
|
||||
#define VIR_LOG_TIME_REGEX "[0-9][0-9]:[0-9][0-9]:[0-9][0-9]\\.[0-9][0-9][0-9]\\+[0-9][0-9][0-9][0-9]"
|
||||
#define VIR_LOG_DATE_REGEX "[0-9]{4}-[0-9]{2}-[0-9]{2}"
|
||||
#define VIR_LOG_TIME_REGEX "[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}\\+[0-9]{4}"
|
||||
#define VIR_LOG_PID_REGEX "[0-9]+"
|
||||
#define VIR_LOG_LEVEL_REGEX "debug|info|warning|error"
|
||||
|
||||
|
||||
Reference in new issue
Block a user