Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
S
spdlog
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
spdlog
Commits
28da625a
Commit
28da625a
authored
Dec 21, 2014
by
gabime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed the confusing stop() function
parent
c54c51b5
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
1 addition
and
42 deletions
+1
-42
async_logger.h
include/spdlog/async_logger.h
+0
-1
async_logger_impl.h
include/spdlog/details/async_logger_impl.h
+0
-6
logger_impl.h
include/spdlog/details/logger_impl.h
+0
-13
registry.h
include/spdlog/details/registry.h
+0
-8
spdlog_impl.h
include/spdlog/details/spdlog_impl.h
+1
-4
logger.h
include/spdlog/logger.h
+0
-5
spdlog.h
include/spdlog/spdlog.h
+0
-5
No files found.
include/spdlog/async_logger.h
View file @
28da625a
...
...
@@ -60,7 +60,6 @@ protected:
void
_log_msg
(
details
::
log_msg
&
msg
)
override
;
void
_set_formatter
(
spdlog
::
formatter_ptr
msg_formatter
)
override
;
void
_set_pattern
(
const
std
::
string
&
pattern
)
override
;
void
_stop
()
override
;
private
:
std
::
unique_ptr
<
details
::
async_log_helper
>
_async_log_helper
;
...
...
include/spdlog/details/async_logger_impl.h
View file @
28da625a
...
...
@@ -60,12 +60,6 @@ inline void spdlog::async_logger::_set_pattern(const std::string& pattern)
}
inline
void
spdlog
::
async_logger
::
_stop
()
{
set_level
(
level
::
off
);
}
inline
void
spdlog
::
async_logger
::
_log_msg
(
details
::
log_msg
&
msg
)
{
_async_log_helper
->
log
(
msg
);
...
...
include/spdlog/details/logger_impl.h
View file @
28da625a
...
...
@@ -229,11 +229,6 @@ inline bool spdlog::logger::should_log(spdlog::level::level_enum msg_level) cons
return
msg_level
>=
_level
.
load
();
}
inline
void
spdlog
::
logger
::
stop
()
{
_stop
();
}
//
// protected virtual called at end of each user log call (if enabled) by the line_logger
//
...
...
@@ -253,12 +248,4 @@ inline void spdlog::logger::_set_formatter(formatter_ptr msg_formatter)
_formatter
=
msg_formatter
;
}
inline
void
spdlog
::
logger
::
_stop
()
{
set_level
(
level
::
off
);
}
include/spdlog/details/registry.h
View file @
28da625a
...
...
@@ -127,14 +127,6 @@ public:
_async_mode
=
false
;
}
void
stop_all
()
{
std
::
lock_guard
<
std
::
mutex
>
lock
(
_mutex
);
_level
=
level
::
off
;
for
(
auto
&
l
:
_loggers
)
l
.
second
->
stop
();
}
static
registry
&
instance
()
{
...
...
include/spdlog/details/spdlog_impl.h
View file @
28da625a
...
...
@@ -142,7 +142,4 @@ inline void spdlog::set_sync_mode()
details
::
registry
::
instance
().
set_sync_mode
();
}
inline
void
spdlog
::
stop
()
{
return
details
::
registry
::
instance
().
stop_all
();
}
include/spdlog/logger.h
View file @
28da625a
...
...
@@ -62,10 +62,6 @@ public:
const
std
::
string
&
name
()
const
;
bool
should_log
(
level
::
level_enum
)
const
;
//Stop logging
void
stop
();
template
<
typename
...
Args
>
details
::
line_logger
trace
(
const
char
*
fmt
,
const
Args
&
...
args
);
...
...
@@ -118,7 +114,6 @@ protected:
virtual
void
_log_msg
(
details
::
log_msg
&
);
virtual
void
_set_pattern
(
const
std
::
string
&
);
virtual
void
_set_formatter
(
formatter_ptr
);
virtual
void
_stop
();
details
::
line_logger
_log_if_enabled
(
level
::
level_enum
lvl
);
template
<
typename
...
Args
>
details
::
line_logger
_log_if_enabled
(
level
::
level_enum
lvl
,
const
char
*
fmt
,
const
Args
&
...
args
);
...
...
include/spdlog/spdlog.h
View file @
28da625a
...
...
@@ -113,11 +113,6 @@ std::shared_ptr<logger> create(const std::string& logger_name, const It& sinks_b
template
<
typename
Sink
,
typename
...
Args
>
std
::
shared_ptr
<
spdlog
::
logger
>
create
(
const
std
::
string
&
logger_name
,
const
Args
&
...);
// Stop logging by setting all the loggers to log level OFF
void
stop
();
//
// Trace & debug macros to be switched on/off at compile time for zero cost debug statements.
// Note: using these mactors overrides the runtime log threshold of the logger.
...
...
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