forked from gabime/spdlog
-
Notifications
You must be signed in to change notification settings - Fork 2
Structured spdlog v0 #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
bobhansen
wants to merge
21
commits into
v1.x
Choose a base branch
from
structured_v0
base: v1.x
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 13 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
b43c81a
Make GoogleBenchmark URL configurable so it can be fetched via ssh
bobhansen 9a168af
Added slog method
bobhansen cdfce24
Add log_msg support
bobhansen a9fd0ea
Cleaned up structured logging tests
bobhansen e3f3e65
Added json formatter
bobhansen b7fd915
Moved JSON formatter to be artibrary-flag-based
bobhansen abf0679
Refactor to be C++11 compatible
bobhansen 1c0ccbc
Added public integration points for structured logging
bobhansen ef23750
Added structured field MVP to pattern_formatter
bobhansen 57b035a
Added threadlocal context variables
bobhansen 2b1aa5e
Code cleanup and add SPDLOG_NO_STRUCTURED_SPDLOG to CMakeLists.txt
bobhansen 4014269
Removed overly clever code in buffer_log_msg_buffer
bobhansen 0cbd31e
Fix up examples and readme
bobhansen 7e70660
Code review updates
bobhansen 9799e67
Apply suggestions from code review
bobhansen a07e60b
Code review follow-ups
bobhansen 99b3dfe
Add context::reset
bobhansen d48e567
Fixed table rendering in readme.md
bobhansen 6cbf575
Fixup lvalue field test
bobhansen 8c1c963
Added replacement_context with additional context
bobhansen 9efbaa5
Added info() and logger->info() et al. convenience functions
bobhansen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -71,6 +71,8 @@ option(SPDLOG_BUILD_TESTS_HO "Build tests using the header only version" OFF) | |
|
|
||
| # bench options | ||
| option(SPDLOG_BUILD_BENCH "Build benchmarks (Requires https://github.com/google/benchmark.git to be installed)" OFF) | ||
| option(SPDLOG_GOOGLEBENCHMARK_URL "Url of googlebenchmark git repository" https://github.com/google/benchmark.git) | ||
| # [email protected]:google/benchmark.git | ||
|
|
||
| # sanitizer options | ||
| option(SPDLOG_SANITIZE_ADDRESS "Enable address sanitizer in tests" OFF) | ||
|
|
@@ -119,6 +121,7 @@ option( | |
| SPDLOG_NO_ATOMIC_LEVELS | ||
| "prevent spdlog from using of std::atomic log levels (use only if your code never modifies log levels concurrently" | ||
| OFF) | ||
| option(SPDLOG_NO_STRUCTURED_SPDLOG "Turn off structured support for a small speed increase" OFF) | ||
| option(SPDLOG_DISABLE_DEFAULT_LOGGER "Disable default logger creation" OFF) | ||
|
|
||
| # clang-tidy | ||
|
|
@@ -231,6 +234,7 @@ foreach( | |
| SPDLOG_NO_THREAD_ID | ||
| SPDLOG_NO_TLS | ||
| SPDLOG_NO_ATOMIC_LEVELS | ||
| SPDLOG_NO_STRUCTURED_SPDLOG | ||
| SPDLOG_DISABLE_DEFAULT_LOGGER | ||
| SPDLOG_USE_STD_FORMAT) | ||
| if(${SPDLOG_OPTION}) | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.