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
01eb59ca
Commit
01eb59ca
authored
Aug 16, 2019
by
gabime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed spdlog::default_level and its usage in registry
parent
a8b5e3da
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
9 deletions
+2
-9
include/spdlog/details/registry-inl.h
include/spdlog/details/registry-inl.h
+1
-1
include/spdlog/logger-inl.h
include/spdlog/logger-inl.h
+0
-5
include/spdlog/logger.h
include/spdlog/logger.h
+1
-3
No files found.
include/spdlog/details/registry-inl.h
View file @
01eb59ca
...
...
@@ -32,7 +32,7 @@ namespace details {
SPDLOG_INLINE
registry
::
registry
()
:
formatter_
(
new
pattern_formatter
())
,
level_
(
spdlog
::
l
ogger
::
default_level
()
)
,
level_
(
spdlog
::
l
evel
::
info
)
{
#ifndef SPDLOG_DISABLE_DEFAULT_LOGGER
...
...
include/spdlog/logger-inl.h
View file @
01eb59ca
...
...
@@ -86,11 +86,6 @@ SPDLOG_INLINE void logger::set_level(level::level_enum log_level)
level_
.
store
(
log_level
);
}
SPDLOG_INLINE
level
::
level_enum
logger
::
default_level
()
{
return
static_cast
<
level
::
level_enum
>
(
SPDLOG_ACTIVE_LEVEL
);
}
SPDLOG_INLINE
level
::
level_enum
logger
::
level
()
const
{
return
static_cast
<
level
::
level_enum
>
(
level_
.
load
(
std
::
memory_order_relaxed
));
...
...
include/spdlog/logger.h
View file @
01eb59ca
...
...
@@ -308,8 +308,6 @@ public:
void
set_level
(
level
::
level_enum
log_level
);
static
level
::
level_enum
default_level
();
level
::
level_enum
level
()
const
;
const
std
::
string
&
name
()
const
;
...
...
@@ -339,7 +337,7 @@ public:
protected:
std
::
string
name_
;
std
::
vector
<
sink_ptr
>
sinks_
;
spdlog
::
level_t
level_
{
spdlog
::
logger
::
default_level
()
};
spdlog
::
level_t
level_
{
level
::
info
};
spdlog
::
level_t
flush_level_
{
level
::
off
};
err_handler
custom_err_handler_
{
nullptr
};
...
...
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