Created
April 2, 2014 02:26
-
-
Save rueckstiess/9926987 to your computer and use it in GitHub Desktop.
Example of mtools' Log2CodeConverter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from mtools.util.log2code import Log2CodeConverter | |
l2cc = Log2CodeConverter() | |
match, _ = l2cc("Mon Oct 7 13:25:15.613 [FileAllocator] done allocating datafile /data/mongodb/db/local.0, size: 64MB, took 0.522 secs") | |
print match.pattern | |
print match.matches['r2.4.8'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The output would be