|
| 1 | +# Snapshot report for `test/prettify.test.ts` |
| 2 | + |
| 3 | +The actual snapshot is saved in `prettify.test.ts.snap`. |
| 4 | + |
| 5 | +Generated by [AVA](https://avajs.dev). |
| 6 | + |
| 7 | +## creates basic log lines with level |
| 8 | + |
| 9 | +> Snapshot 1 |
| 10 | +
|
| 11 | + '✨ INFO' |
| 12 | + |
| 13 | +## creates basic log lines with string level |
| 14 | + |
| 15 | +> Snapshot 1 |
| 16 | +
|
| 17 | + '✨ INFO hello' |
| 18 | + |
| 19 | +## creates basic log lines with level, message, and time |
| 20 | + |
| 21 | +> Snapshot 1 |
| 22 | +
|
| 23 | + `✨ INFO ␊ |
| 24 | + "message": "hello"` |
| 25 | + |
| 26 | +## creates basic log lines with level, message, and time, and res.statusCode |
| 27 | + |
| 28 | +> Snapshot 1 |
| 29 | +
|
| 30 | + `✨ INFO 200␊ |
| 31 | + "message": "hello"` |
| 32 | + |
| 33 | +## creates basic log lines with level, message, and time, and req.method |
| 34 | + |
| 35 | +> Snapshot 1 |
| 36 | +
|
| 37 | + `✨ INFO [ID:123] GET 200␊ |
| 38 | + "message": "hello"` |
| 39 | + |
| 40 | +## full log line with all time and no extra time |
| 41 | + |
| 42 | +> Snapshot 1 |
| 43 | +
|
| 44 | + `[test] ✨ INFO [ID:123] GET 200 http://localhost:3000 hello␊ |
| 45 | + "ns": "test", "id": "123", "responsedate": 100` |
| 46 | + |
| 47 | +## full log line with all time and extra time |
| 48 | + |
| 49 | +> Snapshot 1 |
| 50 | +
|
| 51 | + `[test] ✨ INFO [ID:123] GET 200 http://localhost:3000 hello␊ |
| 52 | + "ns": "test", "responsedate": 100, "extra": "time"` |
| 53 | + |
| 54 | +## full log line with all time and extra time multiline |
| 55 | + |
| 56 | +> Snapshot 1 |
| 57 | +
|
| 58 | + `[test] ✨ INFO [ID:123] GET 200 http://localhost:3000 hello␊ |
| 59 | + "ns": "test",␊ |
| 60 | + "responsedate": 100,␊ |
| 61 | + "extra": "time",␊ |
| 62 | + "multi": "line",␊ |
| 63 | + "idk": "what",␊ |
| 64 | + "else": "to add",␊ |
| 65 | + "for": {"extra": "time"}` |
| 66 | + |
| 67 | +## custom formatters are merged in the same order as default |
| 68 | + |
| 69 | +> Snapshot 1 |
| 70 | +
|
| 71 | + `[test] ✨ INFO [ID:123] GET 200 hello␊ |
| 72 | + "customField": "customValue"` |
| 73 | + |
| 74 | +> Snapshot 2 |
| 75 | +
|
| 76 | + `!!!test!!! ✨ INFO [ID:123] GET 200 !!!hello!!!␊ |
| 77 | + "customField": "customValue"` |
| 78 | + |
| 79 | +## creates extra log as single line |
| 80 | + |
| 81 | +> Snapshot 1 |
| 82 | +
|
| 83 | + '✨ INFO hello {"extra": {"a": "b", "c": "d"}}' |
0 commit comments