Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
spdlog
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
spdlog
Commits
33f881ac
Commit
33f881ac
authored
Aug 23, 2019
by
gabime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clang-format
parent
b24ef39b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
23 deletions
+2
-23
include/spdlog/details/registry-inl.h
include/spdlog/details/registry-inl.h
+1
-3
include/spdlog/logger-inl.h
include/spdlog/logger-inl.h
+0
-1
include/spdlog/sinks/backtrace-sink.h
include/spdlog/sinks/backtrace-sink.h
+1
-19
No files found.
include/spdlog/details/registry-inl.h
View file @
33f881ac
...
@@ -67,7 +67,7 @@ SPDLOG_INLINE void registry::initialize_logger(std::shared_ptr<logger> new_logge
...
@@ -67,7 +67,7 @@ SPDLOG_INLINE void registry::initialize_logger(std::shared_ptr<logger> new_logge
new_logger
->
set_level
(
level_
);
new_logger
->
set_level
(
level_
);
new_logger
->
flush_on
(
flush_level_
);
new_logger
->
flush_on
(
flush_level_
);
if
(
backtrace_level_
!=
level
::
off
)
if
(
backtrace_level_
!=
level
::
off
)
{
{
new_logger
->
enable_backtrace
(
backtrace_level_
,
backtrace_n_messages_
);
new_logger
->
enable_backtrace
(
backtrace_level_
,
backtrace_n_messages_
);
}
}
...
@@ -76,8 +76,6 @@ SPDLOG_INLINE void registry::initialize_logger(std::shared_ptr<logger> new_logge
...
@@ -76,8 +76,6 @@ SPDLOG_INLINE void registry::initialize_logger(std::shared_ptr<logger> new_logge
{
{
register_logger_
(
std
::
move
(
new_logger
));
register_logger_
(
std
::
move
(
new_logger
));
}
}
}
}
SPDLOG_INLINE
std
::
shared_ptr
<
logger
>
registry
::
get
(
const
std
::
string
&
logger_name
)
SPDLOG_INLINE
std
::
shared_ptr
<
logger
>
registry
::
get
(
const
std
::
string
&
logger_name
)
...
...
include/spdlog/logger-inl.h
View file @
33f881ac
...
@@ -128,7 +128,6 @@ SPDLOG_INLINE void logger::enable_backtrace(level::level_enum trigger_level, siz
...
@@ -128,7 +128,6 @@ SPDLOG_INLINE void logger::enable_backtrace(level::level_enum trigger_level, siz
this
->
set_level
(
spdlog
::
level
::
trace
);
this
->
set_level
(
spdlog
::
level
::
trace
);
}
}
// flush functions
// flush functions
SPDLOG_INLINE
void
logger
::
flush
()
SPDLOG_INLINE
void
logger
::
flush
()
{
{
...
...
include/spdlog/sinks/backtrace-sink.h
View file @
33f881ac
...
@@ -5,7 +5,6 @@
...
@@ -5,7 +5,6 @@
#include "dist_sink.h"
#include "dist_sink.h"
#include "spdlog/details/null_mutex.h"
#include "spdlog/details/null_mutex.h"
#include "spdlog/details/log_msg.h"
#include "spdlog/details/log_msg_buffer.h"
#include "spdlog/details/log_msg_buffer.h"
#include "spdlog/details/circular_q.h"
#include "spdlog/details/circular_q.h"
...
@@ -14,26 +13,9 @@
...
@@ -14,26 +13,9 @@
#include <chrono>
#include <chrono>
// Store log messages in circular buffer
// Store log messages in circular buffer
// If it encounters a message with high enough level, it will send all p
ervious message to its
child sinks
// If it encounters a message with high enough level, it will send all p
revious message to it
child sinks
// Useful for storing debug data in case of error/warning happens
// Useful for storing debug data in case of error/warning happens
//
// Example:
//
// #include "spdlog/spdlog.h"
// #include "spdlog/sinks/backtrace_sink.h
//
// int main() {
// auto backtrace_sink = std::make_shared<backtrace_sink>();
// backtrace_sink ->add_sink(std::make_shared<stdout_color_sink_mt>());
// spdlog::logger l("logger", backtrace_sink);
// logger.set_level(spdlog::level::trace);
// l.trace("Hello");
// l.debug("Hello");
// l.info("Hello");
// l.warn("This will trigger the log of all prev messages in the queue");
// }
namespace
spdlog
{
namespace
spdlog
{
namespace
sinks
{
namespace
sinks
{
template
<
typename
Mutex
>
template
<
typename
Mutex
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment