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
6ec8c597
Commit
6ec8c597
authored
Dec 20, 2014
by
gabime
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://github.com/gabime/spdlog
parents
eda9499d
1e781429
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
6 deletions
+15
-6
include/spdlog/common.h
include/spdlog/common.h
+12
-3
include/spdlog/details/file_helper.h
include/spdlog/details/file_helper.h
+1
-1
include/spdlog/sinks/base_sink.h
include/spdlog/sinks/base_sink.h
+1
-1
include/spdlog/sinks/syslog_sink.h
include/spdlog/sinks/syslog_sink.h
+1
-1
No files found.
include/spdlog/common.h
View file @
6ec8c597
...
...
@@ -27,12 +27,21 @@
#include<initializer_list>
#include<chrono>
//visual studio does not support noexcept yet
#ifndef _MSC_VER
#define SPDLOG_NOEXCEPT noexcept
#else
#define SPDLOG_NOEXCEPT
#endif
namespace
spdlog
{
class
formatter
;
namespace
sinks
{
class
sink
;}
namespace
sinks
{
class
sink
;
}
// Common types across the lib
using
log_clock
=
std
::
chrono
::
system_clock
;
...
...
@@ -71,8 +80,8 @@ inline const char* to_str(spdlog::level::level_enum l)
class
spdlog_ex
:
public
std
::
exception
{
public:
spdlog_ex
(
const
std
::
string
&
msg
)
:
_msg
(
msg
)
{}
;
const
char
*
what
()
const
throw
()
override
spdlog_ex
(
const
std
::
string
&
msg
)
:
_msg
(
msg
)
{}
const
char
*
what
()
const
SPDLOG_NOEXCEPT
override
{
return
_msg
.
c_str
();
}
...
...
include/spdlog/details/file_helper.h
View file @
6ec8c597
...
...
@@ -51,7 +51,7 @@ public:
explicit
file_helper
(
bool
auto_flush
)
:
_fd
(
nullptr
),
_auto_flush
(
auto_flush
)
{}
;
{}
file_helper
(
const
file_helper
&
)
=
delete
;
file_helper
&
operator
=
(
const
file_helper
&
)
=
delete
;
...
...
include/spdlog/sinks/base_sink.h
View file @
6ec8c597
...
...
@@ -56,7 +56,7 @@ public:
{
std
::
lock_guard
<
Mutex
>
lock
(
_mutex
);
_sink_it
(
msg
);
}
;
}
protected:
...
...
include/spdlog/sinks/syslog_sink.h
View file @
6ec8c597
...
...
@@ -75,7 +75,7 @@ public:
void
log
(
const
details
::
log_msg
&
msg
)
override
{
::
syslog
(
syslog_prio_from_level
(
msg
),
"%s"
,
msg
.
formatted
.
str
().
c_str
());
}
;
}
...
...
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