Commit Graph

99 Commits

Author SHA1 Message Date
Zahary Karadjov e33a4e4195 Reorder the fields in the json output for better readability; Support using File outputs when using threads 2019-03-25 16:03:34 +02:00
Zahary Karadjov 5a5d034f12 Don't fail to compile when threading is disabled 2019-03-25 02:24:12 +02:00
Zahary Karadjov 196615af97 Cosmetic clean-up 2019-03-25 01:16:02 +02:00
Zahary Karadjov 793c8d5370 Finish the thread-safety story by using buffered outputs when necessary 2019-03-25 01:04:49 +02:00
Zahary Karadjov cb828352cc Thread-safety for the registry 2019-03-25 00:46:17 +02:00
Zahary Karadjov 3586140622 Cherry pick the best parts of #45 2019-03-24 23:58:02 +02:00
Zahary Karadjov 2079744de6 Minimal patch solving the GC safety issues 2019-03-24 23:57:54 +02:00
Zahary Karadjov 43c10a19cd Custom formatting and auto-expanding for user-defined types 2019-03-24 22:16:04 +02:00
Ștefan Talpalaru e477bc220e
assert() -> doAssert() 2019-03-14 04:33:08 +01:00
Ștefan Talpalaru 98e334f63e
Merge pull request #44 from Yardanico/patch-1
Fix compilation error on Nim devel
2019-01-26 00:32:02 +01:00
Yardanico 1729faf2b3
Fix compilation error on Nim devel
Without this change Chronicles fails to compile on latest Nim compiler with that error:
```
/home/dian/.nimble/pkgs/chronicles-0.4.1/chronicles/options.nim(137, 47) Error: return type 'untyped' is only valid for macros and templates
```

Changing the return type to seq fixes it.
2019-01-25 15:27:03 +00:00
Jacek Sieka 258e8ba92c
use process id when thread id is not available (#43)
* use process id when thread id is not available

* thread test: remove redundant peg

* enable process id for all posixes
2019-01-24 17:31:49 -06:00
zah 9b45420b02
More up-to-date information in the README 2019-01-23 14:16:57 +02:00
Zahary Karadjov ac1e97cd37 v0.4.1: Fix a false-positive run-time filtering error for statements without a topic 2019-01-21 20:12:31 +02:00
Ștefan Talpalaru a7f5589ed8 a test with threading enabled 2019-01-08 22:35:11 +02:00
Bruno Škvorc 1cc04a83fc
Update README.md 2019-01-02 14:52:40 +01:00
Ștefan Talpalaru 5b9fd7c927 fix compilation with Nim HEAD
- switch from xmldom (removed from the stdlib) to xmltree
- delete unreachable `else` clause in `case` expression
2018-12-22 15:44:52 +02:00
Jacek Sieka 261e58e870
travis: add config 2018-12-21 20:50:44 -06:00
Jacek Sieka b911856a35
Merge branch 'master' of github.com:status-im/nim-chronicles 2018-11-19 06:16:58 -06:00
Zahary Karadjov f48bb255c1 Extract chronicles_tail in a separate package; Bump version to 0.4.0 2018-11-10 17:17:55 +02:00
Zahary Karadjov 44b87f8927 optimize the size of the generated code 2018-11-10 17:14:25 +02:00
Zahary Karadjov 4f7ba4affe small fix after a rebase 2018-11-10 15:05:29 +02:00
Zahary Karadjov 263fac558f Fix the run-time filtering logic for the new per-topic log level
Fix the tests affected by the new more human-friendly JSON property names
2018-11-10 15:02:13 +02:00
Zahary Karadjov 983cd02513 Replace the compiler dependency with an SQL parser 2018-11-10 15:02:13 +02:00
Surf1nb1rd f929f3005c Implemented the chronicles_tail tool 2018-11-10 15:00:45 +02:00
Zahary Karadjov b0f6fb92b7 Messages produced with LogLevel.NONE are not subjected to any filtering.
Support for outputting of verbatim JSON string though the JsonString
distinct type.
2018-11-10 02:23:09 +02:00
Jacek Sieka cb67f107ab
vscode: add test task 2018-11-09 06:43:44 -06:00
deme 42a141e573 Update/correct documentation 2018-11-04 12:25:47 +02:00
Zahary Karadjov 05b90e6b6d bump version to 0.3.2 2018-10-21 01:17:32 +03:00
Zahary Karadjov 963b507091 Merge branch 'tests' 2018-10-21 00:44:49 +03:00
Zahary Karadjov b4401625f8 Add options to include or exclude certain tests 2018-10-20 21:42:22 +03:00
Zahary Karadjov 8467bd5076 fully passing test suite 2018-10-20 21:41:51 +03:00
Zahary Karadjov f70c379850 Fix compilation error when dynamic scopes are used under the textblocks format 2018-10-20 20:12:14 +03:00
Yuriy Glukhov 1d8ef9102a Bumped version to 0.3.1 2018-10-20 19:22:08 +03:00
Zahary Karadjov e38090f2dd fix the tests involving custom streams 2018-10-19 20:01:26 +03:00
Zahary Karadjov 0be283193e Fix some compilation errors when multiple sinks are used 2018-10-19 19:39:48 +03:00
Zahary Karadjov 94e8e2b2e8 run the new testrunner on 'nimble test' 2018-10-19 18:22:46 +03:00
deme 8b9e508a0f #20 Add test file os property 2018-10-17 13:59:49 +02:00
deme c6c25ef652 #20 Add testrunner readme.md 2018-10-15 18:21:08 +02:00
deme 8a9b201d62 #20 Add file check + fix possible wrong failure message (multiple outputs) + update timestamp peg 2018-10-15 16:59:37 +02:00
deme b8356e79bb #20 Add more tests and update existing tests 2018-10-15 16:45:27 +02:00
deme fb4e6b7531 #20 Add first set of tests 2018-10-15 16:45:27 +02:00
deme dff4f8ad02 #20 First version of testrunner 2018-10-15 16:45:27 +02:00
deme b53a15ba27 Format unix timestamp decimals always to 6 2018-10-12 15:38:11 +03:00
Zahary Karadjov b35822f7d7 bugfix: fix a rare error triggered by the short-hand propery syntax in some situations 2018-10-11 20:59:11 +03:00
Zahary Karadjov eaaae4ce7b bump version to v0.3.0 2018-10-03 13:26:42 +03:00
Zahary Karadjov 7d5b45f928 Drop the dependency on Nimble's syslog package 2018-09-16 01:09:22 +03:00
Zahary Karadjov 9a145a95d9 fix #32; fix #33 2018-09-11 01:39:07 +03:00
deme 0a17a213e2 Add error when enabled and required topics are used together 2018-09-08 16:46:51 +03:00
deme bd820967ba [#17] Resolve review comments + fix issue when selecting NONE as LogLevel 2018-09-06 01:12:44 +03:00