Create a gist now

Instantly share code, notes, and snippets.

Dummy multi-line log
2015-03-14 20:12:22,123 [ERROR] Book reader error
Exception in thread "main" java.lang.IllegalStateException: A book has a null property
at com.example.myproject.Author.getBookIds(Author.java:38)
at com.example.myproject.Bootstrap.main(Bootstrap.java:14)
Caused by: java.lang.NullPointerException
at com.example.myproject.Book.getId(Book.java:22)
at com.example.myproject.Author.getBookIds(Author.java:35)
... 1 more
2015-03-14 20:13:34,456 [INFO] Login (userId=12345)
2015-03-14 20:13:41,678 [INFO] Login (userId=2345)
2015-03-14 20:13:34,456 [WARN] Suspected SQL injection attack (input="; DROP TABLE USERS --")
2015-03-14 20:15:03,001 [INFO] Login (userId=3456789)
2015-03-14 20:16:00,000 [ERROR] Indescribable error
2015-03-14 20:16:45,183 [ERROR] Book reader error
Exception in thread "main" java.lang.IllegalStateException: A book has a null property
at com.example.myproject.Author.getBookIds(Author.java:38)
at com.example.myproject.Bootstrap.main(Bootstrap.java:14)
Caused by: java.sql.SQLException: Unknown reason
at com.example.myproject.Book.getId(Book.java:32)
at com.example.myproject.Author.getBookIds(Author.java:35)
... 1 more
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment