Skip to content
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

update example to ensure build fails in the future for similar linkage error #653

Merged
merged 1 commit into from
Jan 24, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions examples/shared_library/example_shared.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ int main()
{
setup_quill();

assert(global_logger_a == get_logger("root"));

// Change the LogLevel to print everything
global_logger_a->set_log_level(quill::LogLevel::TraceL3);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,9 @@ void setup_quill()
quill::PatternFormatterOptions{"%(time) [%(thread_id)] %(short_source_location:<28) "
"LOG_%(log_level:<9) %(logger:<12) %(message)",
"%H:%M:%S.%Qns", quill::Timezone::GmtTime});
}

quill::Logger* get_logger(std::string const& name)
{
return quill::Frontend::get_logger(name);
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,8 @@

#include "quill/core/Attributes.h"

QUILL_EXPORT void setup_quill();
#include "quill/Logger.h"
#include <string>

QUILL_EXPORT void setup_quill();
QUILL_EXPORT quill::Logger* get_logger(std::string const& name);