Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
wolf
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mobile_robotics
wolf_projects
wolf_lib
wolf
Commits
c733f284
Commit
c733f284
authored
11 months ago
by
Joan Vallvé Navarro
Browse files
Options
Downloads
Patches
Plain Diff
same as prev commit
parent
25327003
No related branches found
No related tags found
1 merge request
!475
Resolve "Upgrade logging library"
Pipeline
#18475
failed
11 months ago
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/core/utils/logging.h
+0
-12
0 additions, 12 deletions
include/core/utils/logging.h
with
0 additions
and
12 deletions
include/core/utils/logging.h
+
0
−
12
View file @
c733f284
...
@@ -127,11 +127,7 @@ inline Logger::Logger(const std::string& name) :
...
@@ -127,11 +127,7 @@ inline Logger::Logger(const std::string& name) :
// Enable asynchronous logging
// Enable asynchronous logging
// Queue size must be a power of 2
// Queue size must be a power of 2
#if SPDLOG_VER_MAJOR >= 1
spdlog
::
init_thread_pool
(
4096
,
1
);
spdlog
::
init_thread_pool
(
4096
,
1
);
#else
spdlog
::
set_async_mode
(
4096
);
#endif
if
(
log_name_
==
__INTERNAL_WOLF_MAIN_LOGGER_NAME_
)
if
(
log_name_
==
__INTERNAL_WOLF_MAIN_LOGGER_NAME_
)
// Logging pattern is :
// Logging pattern is :
...
@@ -160,11 +156,7 @@ inline Logger::Logger(std::string&& name) :
...
@@ -160,11 +156,7 @@ inline Logger::Logger(std::string&& name) :
// Enable asynchronous logging
// Enable asynchronous logging
// Queue size must be a power of 2
// Queue size must be a power of 2
#if SPDLOG_VER_MAJOR >= 1
spdlog
::
init_thread_pool
(
4096
,
1
);
spdlog
::
init_thread_pool
(
4096
,
1
);
#else
spdlog
::
set_async_mode
(
4096
);
#endif
if
(
log_name_
==
__INTERNAL_WOLF_MAIN_LOGGER_NAME_
)
if
(
log_name_
==
__INTERNAL_WOLF_MAIN_LOGGER_NAME_
)
// Logging pattern is :
// Logging pattern is :
...
@@ -219,11 +211,7 @@ void Logger::trace(Args&&... args) const
...
@@ -219,11 +211,7 @@ void Logger::trace(Args&&... args) const
inline
bool
Logger
::
set_async_queue
(
const
std
::
size_t
q_size
)
inline
bool
Logger
::
set_async_queue
(
const
std
::
size_t
q_size
)
{
{
bool
p2
=
q_size
%
2
==
0
;
bool
p2
=
q_size
%
2
==
0
;
#if SPDLOG_VER_MAJOR >= 1
if
(
p2
)
spdlog
::
init_thread_pool
(
q_size
,
1
);
if
(
p2
)
spdlog
::
init_thread_pool
(
q_size
,
1
);
#else
if
(
p2
)
spdlog
::
set_async_mode
(
q_size
);
#endif
return
q_size
;
return
q_size
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment