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
0c94ce00
Commit
0c94ce00
authored
Feb 25, 2018
by
Daniel Chabrowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
deleted copy op and a little format
parent
af50d5ef
Changes
11
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
29 additions
and
27 deletions
+29
-27
include/spdlog/async_logger.h
include/spdlog/async_logger.h
+2
-3
include/spdlog/common.h
include/spdlog/common.h
+1
-1
include/spdlog/details/async_log_helper.h
include/spdlog/details/async_log_helper.h
+3
-1
include/spdlog/details/async_logger_impl.h
include/spdlog/details/async_logger_impl.h
+3
-3
include/spdlog/details/log_msg.h
include/spdlog/details/log_msg.h
+1
-1
include/spdlog/details/logger_impl.h
include/spdlog/details/logger_impl.h
+2
-2
include/spdlog/details/os.h
include/spdlog/details/os.h
+2
-2
include/spdlog/details/pattern_formatter_impl.h
include/spdlog/details/pattern_formatter_impl.h
+10
-10
include/spdlog/details/registry.h
include/spdlog/details/registry.h
+3
-3
include/spdlog/sinks/base_sink.h
include/spdlog/sinks/base_sink.h
+1
-1
include/spdlog/sinks/sink.h
include/spdlog/sinks/sink.h
+1
-0
No files found.
include/spdlog/async_logger.h
View file @
0c94ce00
...
...
@@ -78,5 +78,4 @@ private:
};
}
#include "details/async_logger_impl.h"
include/spdlog/common.h
View file @
0c94ce00
include/spdlog/details/async_log_helper.h
View file @
0c94ce00
...
...
@@ -136,6 +136,9 @@ public:
// stop logging and join the back thread
~
async_log_helper
();
async_log_helper
(
const
async_log_helper
&
)
=
delete
;
async_log_helper
&
operator
=
(
const
async_log_helper
&
)
=
delete
;
void
set_formatter
(
formatter_ptr
);
void
flush
(
bool
wait_for_q
);
...
...
@@ -155,7 +158,6 @@ private:
bool
_terminate_requested
;
// overflow policy
const
async_overflow_policy
_overflow_policy
;
...
...
include/spdlog/details/async_logger_impl.h
View file @
0c94ce00
include/spdlog/details/log_msg.h
View file @
0c94ce00
include/spdlog/details/logger_impl.h
View file @
0c94ce00
include/spdlog/details/os.h
View file @
0c94ce00
include/spdlog/details/pattern_formatter_impl.h
View file @
0c94ce00
...
...
@@ -36,7 +36,7 @@ public:
///////////////////////////////////////////////////////////////////////
namespace
{
class
name_formatter
:
public
flag_formatter
class
name_formatter
:
public
flag_formatter
{
void
format
(
details
::
log_msg
&
msg
,
const
std
::
tm
&
)
override
{
...
...
@@ -46,7 +46,7 @@ class name_formatter:public flag_formatter
}
// log level appender
class
level_formatter
:
public
flag_formatter
class
level_formatter
:
public
flag_formatter
{
void
format
(
details
::
log_msg
&
msg
,
const
std
::
tm
&
)
override
{
...
...
@@ -55,7 +55,7 @@ class level_formatter:public flag_formatter
};
// short log level appender
class
short_level_formatter
:
public
flag_formatter
class
short_level_formatter
:
public
flag_formatter
{
void
format
(
details
::
log_msg
&
msg
,
const
std
::
tm
&
)
override
{
...
...
@@ -79,7 +79,7 @@ static int to12h(const tm& t)
//Abbreviated weekday name
static
const
std
::
string
days
[]
{
"Sun"
,
"Mon"
,
"Tue"
,
"Wed"
,
"Thu"
,
"Fri"
,
"Sat"
};
class
a_formatter
:
public
flag_formatter
class
a_formatter
:
public
flag_formatter
{
void
format
(
details
::
log_msg
&
msg
,
const
std
::
tm
&
tm_time
)
override
{
...
...
@@ -89,7 +89,7 @@ class a_formatter:public flag_formatter
//Full weekday name
static
const
std
::
string
full_days
[]
{
"Sunday"
,
"Monday"
,
"Tuesday"
,
"Wednesday"
,
"Thursday"
,
"Friday"
,
"Saturday"
};
class
A_formatter
:
public
flag_formatter
class
A_formatter
:
public
flag_formatter
{
void
format
(
details
::
log_msg
&
msg
,
const
std
::
tm
&
tm_time
)
override
{
...
...
@@ -99,7 +99,7 @@ class A_formatter:public flag_formatter
//Abbreviated month
static
const
std
::
string
months
[]
{
"Jan"
,
"Feb"
,
"Mar"
,
"Apr"
,
"May"
,
"Jun"
,
"Jul"
,
"Aug"
,
"Sept"
,
"Oct"
,
"Nov"
,
"Dec"
};
class
b_formatter
:
public
flag_formatter
class
b_formatter
:
public
flag_formatter
{
void
format
(
details
::
log_msg
&
msg
,
const
std
::
tm
&
tm_time
)
override
{
...
...
@@ -109,7 +109,7 @@ class b_formatter:public flag_formatter
//Full month name
static
const
std
::
string
full_months
[]
{
"January"
,
"February"
,
"March"
,
"April"
,
"May"
,
"June"
,
"July"
,
"August"
,
"September"
,
"October"
,
"November"
,
"December"
};
class
B_formatter
:
public
flag_formatter
class
B_formatter
:
public
flag_formatter
{
void
format
(
details
::
log_msg
&
msg
,
const
std
::
tm
&
tm_time
)
override
{
...
...
include/spdlog/details/registry.h
View file @
0c94ce00
...
...
@@ -214,9 +214,9 @@ private:
bool
_async_mode
=
false
;
size_t
_async_q_size
=
0
;
async_overflow_policy
_overflow_policy
=
async_overflow_policy
::
block_retry
;
std
::
function
<
void
()
>
_worker_warmup_cb
=
nullptr
;
std
::
chrono
::
milliseconds
_flush_interval_ms
{
0
}
;
std
::
function
<
void
()
>
_worker_teardown_cb
=
nullptr
;
std
::
function
<
void
()
>
_worker_warmup_cb
;
std
::
chrono
::
milliseconds
_flush_interval_ms
;
std
::
function
<
void
()
>
_worker_teardown_cb
;
};
#ifdef SPDLOG_NO_REGISTRY_MUTEX
...
...
include/spdlog/sinks/base_sink.h
View file @
0c94ce00
...
...
@@ -25,7 +25,7 @@ template<class Mutex>
class
base_sink
:
public
sink
{
public:
base_sink
()
:
_mutex
()
{}
base_sink
()
=
default
;
base_sink
(
const
base_sink
&
)
=
delete
;
base_sink
&
operator
=
(
const
base_sink
&
)
=
delete
;
...
...
include/spdlog/sinks/sink.h
View file @
0c94ce00
...
...
@@ -15,6 +15,7 @@ class sink
{
public:
virtual
~
sink
()
=
default
;
virtual
void
log
(
const
details
::
log_msg
&
msg
)
=
0
;
virtual
void
flush
()
=
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