mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 11:22:23 +00:00
logging: Make log regexp more compact (and readable)
This commit is contained in:
parent
6d1b3edc6e
commit
fd2e55302b
@ -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"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user