Add test/corpus/*.log files (accidentally excluded) so that test suite works
This commit is contained in:
parent
7931359589
commit
7e90e07865
6 changed files with 27 additions and 2 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,4 +1,4 @@
|
|||
/tmp
|
||||
/npm-debug.log
|
||||
/node_modules
|
||||
*.log
|
||||
!/test/corpus/*.log
|
||||
|
|
|
@ -2,7 +2,8 @@
|
|||
|
||||
## bunyan 0.8.1 (not yet released)
|
||||
|
||||
(nothing yet)
|
||||
- Add test/corpus/*.log files (accidentally excluded) so that test suite
|
||||
works(!).
|
||||
|
||||
|
||||
## bunyan 0.8.0
|
||||
|
|
20
test/corpus/all.log
Normal file
20
test/corpus/all.log
Normal file
|
@ -0,0 +1,20 @@
|
|||
# levels
|
||||
{"name":"myservice","pid":123,"hostname":"example.com","level":10,"msg":"My message","time":"2012-02-08T22:56:50.856Z","v":0}
|
||||
{"name":"myservice","pid":123,"hostname":"example.com","level":20,"msg":"My message","time":"2012-02-08T22:56:51.856Z","v":0}
|
||||
{"name":"myservice","pid":123,"hostname":"example.com","level":30,"msg":"My message","time":"2012-02-08T22:56:52.856Z","v":0}
|
||||
{"name":"myservice","pid":123,"hostname":"example.com","level":40,"msg":"My message","time":"2012-02-08T22:56:53.856Z","v":0}
|
||||
{"name":"myservice","pid":123,"hostname":"example.com","level":50,"msg":"My message","time":"2012-02-08T22:56:54.856Z","v":0}
|
||||
{"name":"myservice","pid":123,"hostname":"example.com","level":55,"msg":"My message","time":"2012-02-08T22:56:55.856Z","v":0}
|
||||
{"name":"myservice","pid":123,"hostname":"example.com","level":60,"msg":"My message","time":"2012-02-08T22:56:56.856Z","v":0}
|
||||
|
||||
# extra fields
|
||||
{"name":"myservice","pid":123,"hostname":"example.com","level":30,"one":"short","msg":"My message","time":"2012-02-08T22:56:52.856Z","v":0}
|
||||
{"name":"myservice","pid":123,"hostname":"example.com","level":30,"two":"short with space","msg":"My message","time":"2012-02-08T22:56:52.856Z","v":0}
|
||||
{"name":"myservice","pid":123,"hostname":"example.com","level":30,"three":"multi\nline","msg":"My message","time":"2012-02-08T22:56:52.856Z","v":0}
|
||||
{"name":"myservice","pid":123,"hostname":"example.com","level":30,"four":"over 50 chars long long long long long long long long long","msg":"My message","time":"2012-02-08T22:56:52.856Z","v":0}
|
||||
{"name":"myservice","pid":123,"hostname":"example.com","level":30,"five":{"a": "json object"},"msg":"My message","time":"2012-02-08T22:56:52.856Z","v":0}
|
||||
{"name":"myservice","pid":123,"hostname":"example.com","level":30,"six":["a", "json", "array"],"msg":"My message","time":"2012-02-08T22:56:52.856Z","v":0}
|
||||
|
||||
# bogus
|
||||
not a JSON line
|
||||
{"hi": "there"}
|
2
test/corpus/bogus.log
Normal file
2
test/corpus/bogus.log
Normal file
|
@ -0,0 +1,2 @@
|
|||
not a JSON line
|
||||
{"hi": "there"}
|
1
test/corpus/extrafield.log
Normal file
1
test/corpus/extrafield.log
Normal file
|
@ -0,0 +1 @@
|
|||
{"name":"myservice","pid":123,"hostname":"example.com","level":30,"extra":"field","msg":"My message","time":"2012-02-08T22:56:52.856Z","v":0}
|
1
test/corpus/simple.log
Normal file
1
test/corpus/simple.log
Normal file
|
@ -0,0 +1 @@
|
|||
{"name":"myservice","pid":123,"hostname":"example.com","level":30,"msg":"My message","time":"2012-02-08T22:56:52.856Z","v":0}
|
Loading…
Reference in a new issue