DescriptionUpdate syslog parser for new ChromeOS log format
In R39, ChromeOS rsyslogd no longer includes the hostname
field. Update SyslogParser accordingly.
While there:
- Update example shill log message to include process ID.
(ChromeOS syslog recently started recording process IDs
whenever possible.)
- Add a test log message from the kernel. This message does
not include a process ID.
- Fix parsing of messages that do not have a process ID.
Previously, for such messages, the process name would include
a trailing ':'. With this change, they no longer do. (The
process name will now be 'kernel', instead of 'kernel:'.)
- Simplify string EXPECTations. (No need for cstr() and STREQ.)
BUG=403558
TEST=unit test (ExtensionSyslogParserTest.ParseLog)
Committed: https://crrev.com/1a2f0e0889de76e03e14d454fef33711b4be3a3b
Cr-Commit-Position: refs/heads/master@{#292058}
Patch Set 1 #
Total comments: 4
Patch Set 2 : correct commit message, and simplify tests #
Messages
Total messages: 15 (0 generated)
|