Commit graph

43 commits

Author SHA1 Message Date
76e4782cb0 feat(levels): easier threshold setting.
- Adds `threshold(string)` for easier level setting.
- Adds `levels()` to make it easy to test if a user-defined string is good.
- Move the log levels section up in the readme.
2022-08-29 10:24:17 +02:00
562f5682c6 update docs 2022-08-29 09:48:28 +02:00
be48aad4ec refactor(test): use simpler ASSERT wrapper 2022-08-29 09:47:58 +02:00
293948d934 fix(clutchlog): naming convention & missing doc
- fix naming convention
- fix missing documentation
2022-08-29 09:46:49 +02:00
e35d118cdb fix(macros) scope leaks
- Fix macro scope leak: included in scope guards.
- Move default options as static class members.
- Adds tests to build_all.sh
- Use vanilla std::filesystem
2022-08-29 09:09:23 +02:00
7b28105c19
better readme TOC 2022-01-04 22:04:16 +01:00
d1fa9bd896
fix grammar in readme 2022-01-04 22:01:22 +01:00
e1bac0e970 fix: prefix variables within macro to avoid scope problems. v0.7.1 2021-12-19 14:04:34 +01:00
c2c28b134f change licence for a BSD 2021-12-19 13:49:38 +01:00
c871336f6d feat: add the CLUTCHLOG_STRIP_CALLS macro v0.7.0
To configure the default number of levels removed from the calls stack depth computations.
2021-12-19 08:38:13 +01:00
26a5461cc4 update doc 2021-12-19 08:32:51 +01:00
44ffe6309a fix {depth} display, warnings and doc
- fix call stack depth display with {depth}: remove (5) stripped depths.
- fix warnings in tests
- Explain CLUTCHLOG_HAVE_UNIX_SYSINFO in the README.
2021-12-19 08:30:19 +01:00
6123490af6
Merge pull request #1 from jacobdenobel/master
Windows and gcc < 9.0 fixes
2021-07-21 08:43:27 +02:00
Jacob
09d6b915e3
Update clutchlog.h
Change filesystem include and include ciso646 header for windows named logical operators
2021-07-20 21:37:51 +02:00
Jacob
739942bc37
Update CMakeLists.txt
Add compile defintions for filesystem header for older gcc versions
2021-07-20 21:35:17 +02:00
4b6858d526 Merge branch 'master' of github.com:nojhan/clutchlog 2021-06-02 16:06:22 +02:00
4730a76dcc fix CLUTCHCODE 2021-06-02 16:04:56 +02:00
5f62668d82 fix typo in readme 2021-06-01 09:35:31 +02:00
68876a8230
small doc addition
remove ambiguity of doc about dump file comment
2021-05-29 21:54:14 +02:00
74c33f6371 add the CLUTCHCODE macro 2021-05-29 18:25:54 +02:00
3175e2d87b 0.6 release: "a pulled back tress"
- new feature: generic wrapper to (de)clutch any function call
2020-11-01 19:28:54 +01:00
ad8fc14cf5 fix build script to handle documentation correctly 0.6.0
- make doc target was disabled by default.
- update documentation.
2020-11-01 19:23:48 +01:00
978d3d9b66 feat add the CLUTCHFUNC macro
- Allow to (de)clutch any function call, like asserts.
- fix make max_buffer static const.
- feat make locate and scope_t public.
2020-11-01 19:22:17 +01:00
81e3f6fd03 fix a typo in the doc 2020-10-18 17:45:11 +02:00
2936c0363b add macros to the doc 0.5.0 2020-10-18 17:20:14 +02:00
2a0b05f59f add table of content to the doc 2020-10-18 17:08:09 +02:00
7e75e8fb13 use doxygen as github pages in docs/ 2020-10-18 17:01:56 +02:00
68f7b70f26 Add doxyfile documentation 2020-10-18 16:52:16 +02:00
d171c55284 fix: depth mark, feat: more levels, feat: level_of
- fix: the depth mark was not configurable,
- rename the "quiet" level as "critical",
- add the "note" log level,
- adds `level_of` to ease user input of log levels,
- explaing log levels semantics in the readme.
2020-10-18 15:42:24 +02:00
a93411c4f6 feat: add ANSI color/style formatting 0.4.0 v0.4.0
- at some log levels by defaults,
- can be used within format
2020-10-17 22:24:21 +02:00
3a4bdc0d57 fix: portability patch for OS other than Linux 0.3.0
- Test for sys headers and disable depth/name if not found
- Update the doc and bump to 0.3.
2020-09-19 18:20:07 +02:00
008aa7cf31 bump to version 0.2.0 0.2.0 2020-09-15 23:13:48 +02:00
243b22e4c1 feat: optimize out in Release builds
- fix: fastest scope matching,
- feat: try to allow the compiler to optimize out as many conditional statements as possible,
        which allow to use clutchlog for progress-only messages in Release mode.
- feat: build_all.sh test script,
- fix: typo in macro declarations in builds without clutchlog,
- update the README accordingly.
2020-09-15 23:12:19 +02:00
a8755a3444 fix typo 0.1.0 2020-09-04 10:54:34 +02:00
75f18ea8a8 better readme 2020-09-04 10:51:58 +02:00
93402d0c4b feat: full featured dump 2020-09-04 10:32:06 +02:00
7ef6459c35 clean-up refactoring and more detailed doc 2020-08-31 00:29:12 +02:00
4de679228e add a way to override default format at build 2020-08-30 23:33:35 +02:00
819a2ebf15 refactor msg formatting, add CLUTCHDUMP
- remove show_* methods.
2020-08-30 23:30:00 +02:00
b3a04a88a7 add level prefix letter, refactor test 2020-08-26 22:33:12 +02:00
7ae6c40d27 refactor and add configurable decorations 2020-08-26 22:03:52 +02:00
aea665ee51 add LGPLv3-or-later license 2020-08-23 11:17:54 +02:00
e30a6b3e85 first import 2020-08-23 11:11:15 +02:00