Created
February 5, 2014 07:03
-
-
Save kiyoto/8818608 to your computer and use it in GitHub Desktop.
Testing multiline for Windows
This file contains hidden or 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
2013-3-03 14:27:33 [main] INFO Main - Start | |
2013-3-03 14:27:33 [main] ERROR Main - Exception | |
javax.management.RuntimeErrorException: null | |
at Main.main(Main.java:16) ~[bin/:na] | |
2013-3-03 14:27:33 [main] INFO Main - End |
This file contains hidden or 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
<source> | |
type tail_multiline | |
tag test | |
format /^(?<time>\d{4}-\d{1,2}-\d{1,2} \d{1,2}:\d{1,2}:\d{1,2}) \[(?<thread>.*)\] (?<level>[^\s]+)(?<message>.*)/ | |
path <PATH/TO/YOUR/LOG4J/LOG> | |
</source> | |
<match test> | |
type stdout | |
</match> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment