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
4dc75adf
Commit
4dc75adf
authored
Dec 07, 2014
by
gabi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
async_logger comments
parent
0dd4e552
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
include/spdlog/async_logger.h
include/spdlog/async_logger.h
+5
-3
No files found.
include/spdlog/async_logger.h
View file @
4dc75adf
...
@@ -24,12 +24,14 @@
...
@@ -24,12 +24,14 @@
#pragma once
#pragma once
// Very fast asynchronous logger (millions of logs per second on a
regular
desktop)
// Very fast asynchronous logger (millions of logs per second on a
n average
desktop)
// Uses pre allocated lockfree queue for maximum throughput even under large number of threads.
// Uses pre allocated lockfree queue for maximum throughput even under large number of threads.
// Creates a single back thread to pop messages from the queue and log them.
//
// Upon each log write the logger:
// Upon each log write the logger:
// 1. Checks if its log level is enough to log the message
// 1. Checks if its log level is enough to log the message
// 2. Push a new copy of the message to a queue
or block the caller until space is available
// 2. Push a new copy of the message to a queue
(or block the caller until space is available in the queue)
// 3. will throw spdlog_ex upon exceptions
// 3. will throw spdlog_ex upon
log
exceptions
// Upong destruction, logs all remaining messages in the queue before destructing..
// Upong destruction, logs all remaining messages in the queue before destructing..
#include <chrono>
#include <chrono>
...
...
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