2621e68c20
feat(depth): adds the CLUTCHLOGD macro
...
Allows to increase depth manually at log call.
Implements #9
2023-01-30 22:16:00 +01:00
d5aa2d829b
feat(stack): adds a call macro with depth delta
...
Implements #9
2023-01-29 21:28:11 +01:00
0b970fc2ee
feat(depth_marks): atomic styling of depth marks
...
Color each `{depth_marks}` with the corresponding `depth_styles`.
Implements #8
2023-01-29 08:06:44 +01:00
c45080fc8e
adds value-dependant template tags
...
Implements #4 #5 #7
2023-01-28 15:21:06 +01:00
fbb8318804
feat(template): adds the {level_short} template tag.
2023-01-23 22:24:25 +01:00
7955ec197f
feat(colors): adds 256 and 16M colors mode support in fmt
2023-01-23 17:36:55 +01:00
0a2dfdcdcd
feat(hfill): adds hfill_min
...
Handle narrow terminals/outputs.
2023-01-20 18:43:30 +01:00
dddaee0361
fix(hfill): handle very narrow terminals
2023-01-20 10:58:33 +01:00
1c6a6d8507
feats: adds {level_fmt} and fix hfill accordingly
...
Update t-demo to show more formatting.
2023-01-18 22:30:27 +01:00
a52b260f1b
fix const correctness
2022-09-07 22:55:01 +02:00
0fc2b0cc23
Merge branch 'master' of github.com:nojhan/clutchlog
2022-09-07 22:47:56 +02:00
4a87e4abab
feat: adds strip_calls accessors
2022-09-07 22:45:33 +02:00
14047bdde4
fix: let default format have the {name} in release
2022-09-07 22:45:00 +02:00
8765a53dac
fix: adds hfill_max
...
- fix: get nb_columns from stderr instead of stdout.
- Avoid long hfill when standard output is redirected.
2022-09-07 22:12:49 +02:00
9904034020
feat: add hfill_style
2022-09-05 16:08:55 +02:00
60331279be
fix: missing signatures in release
2022-09-03 18:51:30 +02:00
1822209cb9
fix: const correctness
2022-09-01 22:55:13 +02:00
fc26a8af5a
feat: add the {hfill} format tag
...
and update the readme.
2022-09-01 22:45:38 +02:00
c6f2737527
refactor: follow naming conventions
2022-09-01 16:11:29 +02:00
e72ceecc00
feat: remove location if not in Debug builds
2022-09-01 16:07:28 +02:00
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
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
e1bac0e970
fix: prefix variables within macro to avoid scope problems.
2021-12-19 14:04:34 +01:00
c871336f6d
feat: add the CLUTCHLOG_STRIP_CALLS macro
...
To configure the default number of levels removed from the calls stack depth computations.
2021-12-19 08:38:13 +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
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
4730a76dcc
fix CLUTCHCODE
2021-06-02 16:04:56 +02:00
74c33f6371
add the CLUTCHCODE macro
2021-05-29 18:25:54 +02: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
2936c0363b
add macros to the doc
2020-10-18 17:20:14 +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
...
- 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
...
- 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
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
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
e30a6b3e85
first import
2020-08-23 11:11:15 +02:00