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
f6cece20
Commit
f6cece20
authored
Nov 18, 2016
by
gabime
Browse files
Options
Browse Files
Download
Plain Diff
Merge
parents
817371b2
9eee8230
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
8 deletions
+11
-8
include/spdlog/common.h
include/spdlog/common.h
+3
-3
include/spdlog/details/async_log_helper.h
include/spdlog/details/async_log_helper.h
+2
-2
include/spdlog/details/os.h
include/spdlog/details/os.h
+2
-2
include/spdlog/sinks/sink.h
include/spdlog/sinks/sink.h
+4
-1
No files found.
include/spdlog/common.h
View file @
f6cece20
...
...
@@ -30,11 +30,11 @@
#endif
#if defined(__GNUC__) || defined(__clang__)
#define DEPRECATED __attribute__((deprecated))
#define
SPDLOG_
DEPRECATED __attribute__((deprecated))
#elif defined(_MSC_VER)
#define DEPRECATED __declspec(deprecated)
#define
SPDLOG_
DEPRECATED __declspec(deprecated)
#else
#define DEPRECATED
#define
SPDLOG_
DEPRECATED
#endif
...
...
include/spdlog/details/async_log_helper.h
View file @
f6cece20
...
...
@@ -82,7 +82,7 @@ async_msg(async_msg&& other) SPDLOG_NOEXCEPT:
// never copy or assign. should only be moved..
async_msg
(
const
async_msg
&
)
=
delete
;
async_msg
&
operator
=
(
async_msg
&
other
)
=
delete
;
async_msg
&
operator
=
(
const
async_msg
&
other
)
=
delete
;
// construct from log_msg
async_msg
(
const
details
::
log_msg
&
m
)
:
...
...
@@ -359,7 +359,7 @@ inline void spdlog::details::async_log_helper::sleep_or_yield(const spdlog::log_
// yield upto 150 micros
if
(
time_since_op
<=
microseconds
(
100
))
return
yield
();
return
std
::
this_thread
::
yield
();
// sleep for 20 ms upto 200 ms
...
...
include/spdlog/details/os.h
View file @
f6cece20
...
...
@@ -343,8 +343,8 @@ inline std::string errno_str(int err_num)
else
return
"Unkown error"
;
#elif defined(__FreeBSD__) || defined(__APPLE__) || defined(ANDROID) || \
((_POSIX_C_SOURCE >= 200112L) && !
defined(_GNU_SOURCE)
) // posix version
#elif defined(__FreeBSD__) || defined(__APPLE__) || defined(ANDROID) ||
defined(__SUNPRO_CC) ||
\
((_POSIX_C_SOURCE >= 200112L) && !
_GNU_SOURCE
) // posix version
if
(
strerror_r
(
err_num
,
buf
,
buf_size
)
==
0
)
return
std
::
string
(
buf
);
...
...
include/spdlog/sinks/sink.h
View file @
f6cece20
...
...
@@ -15,7 +15,10 @@ namespace sinks
class
sink
{
public:
sink
()
:
_level
(
level
::
trace
)
{}
sink
()
{
_level
=
level
::
trace
;
}
virtual
~
sink
()
{}
virtual
void
log
(
const
details
::
log_msg
&
msg
)
=
0
;
...
...
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