Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
S
spdlog
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
spdlog
Commits
7f4c1bb7
Commit
7f4c1bb7
authored
Feb 24, 2018
by
Daniel Chabrowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modernize-use-using
parent
abc0d439
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
42 additions
and
36 deletions
+42
-36
common.h
include/spdlog/common.h
+2
-2
mpmc_bounded_q.h
include/spdlog/details/mpmc_bounded_q.h
+1
-1
registry.h
include/spdlog/details/registry.h
+4
-2
ansicolor_sink.h
include/spdlog/sinks/ansicolor_sink.h
+5
-5
dist_sink.h
include/spdlog/sinks/dist_sink.h
+3
-2
file_sinks.h
include/spdlog/sinks/file_sinks.h
+7
-6
msvc_sink.h
include/spdlog/sinks/msvc_sink.h
+2
-2
null_sink.h
include/spdlog/sinks/null_sink.h
+3
-2
ostream_sink.h
include/spdlog/sinks/ostream_sink.h
+3
-2
stdout_sinks.h
include/spdlog/sinks/stdout_sinks.h
+5
-5
wincolor_sink.h
include/spdlog/sinks/wincolor_sink.h
+5
-5
windebug_sink.h
include/spdlog/sinks/windebug_sink.h
+2
-2
No files found.
include/spdlog/common.h
View file @
7f4c1bb7
...
...
@@ -75,7 +75,7 @@ using log_err_handler = std::function<void(const std::string &err_msg)>;
//Log level enum
namespace
level
{
typedef
enum
enum
level_
enum
{
trace
=
0
,
debug
=
1
,
...
...
@@ -84,7 +84,7 @@ typedef enum
err
=
4
,
critical
=
5
,
off
=
6
}
level_enum
;
};
#if !defined(SPDLOG_LEVEL_NAMES)
#define SPDLOG_LEVEL_NAMES { "trace", "debug", "info", "warning", "error", "critical", "off" }
...
...
include/spdlog/details/mpmc_bounded_q.h
View file @
7f4c1bb7
...
...
@@ -157,7 +157,7 @@ private:
size_t
const
max_size_
;
static
size_t
const
cacheline_size
=
64
;
typedef
char
cacheline_pad_t
[
cacheline_size
];
using
cacheline_pad_t
=
char
[
cacheline_size
];
cacheline_pad_t
pad0_
;
cell_t
*
const
buffer_
;
...
...
include/spdlog/details/registry.h
View file @
7f4c1bb7
...
...
@@ -216,10 +216,12 @@ private:
std
::
chrono
::
milliseconds
_flush_interval_ms
;
std
::
function
<
void
()
>
_worker_teardown_cb
=
nullptr
;
};
#ifdef SPDLOG_NO_REGISTRY_MUTEX
typedef
registry_t
<
spdlog
::
details
::
null_mutex
>
registry
;
using
registry
=
registry_t
<
spdlog
::
details
::
null_mutex
>
;
#else
typedef
registry_t
<
std
::
mutex
>
registry
;
using
registry
=
registry_t
<
std
::
mutex
>
;
#endif
}
}
include/spdlog/sinks/ansicolor_sink.h
View file @
7f4c1bb7
...
...
@@ -116,6 +116,9 @@ public:
{}
};
using
ansicolor_stdout_sink_mt
=
ansicolor_stdout_sink
<
std
::
mutex
>
;
using
ansicolor_stdout_sink_st
=
ansicolor_stdout_sink
<
details
::
null_mutex
>
;
template
<
class
Mutex
>
class
ansicolor_stderr_sink
:
public
ansicolor_sink
<
Mutex
>
{
...
...
@@ -124,11 +127,8 @@ public:
{}
};
typedef
ansicolor_stdout_sink
<
std
::
mutex
>
ansicolor_stdout_sink_mt
;
typedef
ansicolor_stdout_sink
<
details
::
null_mutex
>
ansicolor_stdout_sink_st
;
typedef
ansicolor_stderr_sink
<
std
::
mutex
>
ansicolor_stderr_sink_mt
;
typedef
ansicolor_stderr_sink
<
details
::
null_mutex
>
ansicolor_stderr_sink_st
;
using
ansicolor_stderr_sink_mt
=
ansicolor_stderr_sink
<
std
::
mutex
>
;
using
ansicolor_stderr_sink_st
=
ansicolor_stderr_sink
<
details
::
null_mutex
>
;
}
// namespace sinks
}
// namespace spdlog
...
...
include/spdlog/sinks/dist_sink.h
View file @
7f4c1bb7
...
...
@@ -66,7 +66,8 @@ public:
}
};
typedef
dist_sink
<
std
::
mutex
>
dist_sink_mt
;
typedef
dist_sink
<
details
::
null_mutex
>
dist_sink_st
;
using
dist_sink_mt
=
dist_sink
<
std
::
mutex
>
;
using
dist_sink_st
=
dist_sink
<
details
::
null_mutex
>
;
}
}
include/spdlog/sinks/file_sinks.h
View file @
7f4c1bb7
...
...
@@ -55,8 +55,8 @@ private:
bool
_force_flush
;
};
typedef
simple_file_sink
<
std
::
mutex
>
simple_file_sink_mt
;
typedef
simple_file_sink
<
details
::
null_mutex
>
simple_file_sink_st
;
using
simple_file_sink_mt
=
simple_file_sink
<
std
::
mutex
>
;
using
simple_file_sink_st
=
simple_file_sink
<
details
::
null_mutex
>
;
/*
* Rotating file sink based on size
...
...
@@ -149,8 +149,8 @@ private:
details
::
file_helper
_file_helper
;
};
typedef
rotating_file_sink
<
std
::
mutex
>
rotating_file_sink_mt
;
typedef
rotating_file_sink
<
details
::
null_mutex
>
rotating_file_sink_st
;
using
rotating_file_sink_mt
=
rotating_file_sink
<
std
::
mutex
>
;
using
rotating_file_sink_st
=
rotating_file_sink
<
details
::
null_mutex
>
;
/*
* Default generator of daily log file names.
...
...
@@ -247,7 +247,8 @@ private:
details
::
file_helper
_file_helper
;
};
typedef
daily_file_sink
<
std
::
mutex
>
daily_file_sink_mt
;
typedef
daily_file_sink
<
details
::
null_mutex
>
daily_file_sink_st
;
using
daily_file_sink_mt
=
daily_file_sink
<
std
::
mutex
>
;
using
daily_file_sink_st
=
daily_file_sink
<
details
::
null_mutex
>
;
}
}
include/spdlog/sinks/msvc_sink.h
View file @
7f4c1bb7
...
...
@@ -42,8 +42,8 @@ protected:
{}
};
typedef
msvc_sink
<
std
::
mutex
>
msvc_sink_mt
;
typedef
msvc_sink
<
details
::
null_mutex
>
msvc_sink_st
;
using
msvc_sink_mt
=
msvc_sink
<
std
::
mutex
>
;
using
msvc_sink_st
=
msvc_sink
<
details
::
null_mutex
>
;
}
}
...
...
include/spdlog/sinks/null_sink.h
View file @
7f4c1bb7
...
...
@@ -26,8 +26,9 @@ protected:
{}
};
typedef
null_sink
<
details
::
null_mutex
>
null_sink_st
;
typedef
null_sink
<
details
::
null_mutex
>
null_sink_mt
;
using
null_sink_mt
=
null_sink
<
details
::
null_mutex
>
;
using
null_sink_st
=
null_sink
<
details
::
null_mutex
>
;
}
}
...
...
include/spdlog/sinks/ostream_sink.h
View file @
7f4c1bb7
...
...
@@ -41,7 +41,8 @@ protected:
bool
_force_flush
;
};
typedef
ostream_sink
<
std
::
mutex
>
ostream_sink_mt
;
typedef
ostream_sink
<
details
::
null_mutex
>
ostream_sink_st
;
using
ostream_sink_mt
=
ostream_sink
<
std
::
mutex
>
;
using
ostream_sink_st
=
ostream_sink
<
details
::
null_mutex
>
;
}
}
include/spdlog/sinks/stdout_sinks.h
View file @
7f4c1bb7
...
...
@@ -42,9 +42,8 @@ protected:
}
};
typedef
stdout_sink
<
details
::
null_mutex
>
stdout_sink_st
;
typedef
stdout_sink
<
std
::
mutex
>
stdout_sink_mt
;
using
stdout_sink_mt
=
stdout_sink
<
std
::
mutex
>
;
using
stdout_sink_st
=
stdout_sink
<
details
::
null_mutex
>
;
template
<
class
Mutex
>
class
stderr_sink
SPDLOG_FINAL
:
public
base_sink
<
Mutex
>
...
...
@@ -71,7 +70,8 @@ protected:
}
};
typedef
stderr_sink
<
std
::
mutex
>
stderr_sink_mt
;
typedef
stderr_sink
<
details
::
null_mutex
>
stderr_sink_st
;
using
stderr_sink_mt
=
stderr_sink
<
std
::
mutex
>
;
using
stderr_sink_st
=
stderr_sink
<
details
::
null_mutex
>
;
}
}
include/spdlog/sinks/wincolor_sink.h
View file @
7f4c1bb7
...
...
@@ -85,7 +85,7 @@ private:
back_color
&=
static_cast
<
WORD
>
(
~
(
FOREGROUND_RED
|
FOREGROUND_GREEN
|
FOREGROUND_BLUE
|
FOREGROUND_INTENSITY
));
// keep the background color unchanged
SetConsoleTextAttribute
(
out_handle_
,
attribs
|
back_color
);
return
orig_buffer_info
.
wAttributes
;
//return orig attribs
return
orig_buffer_info
.
wAttributes
;
//return orig attribs
}
};
...
...
@@ -100,8 +100,8 @@ public:
{}
};
typedef
wincolor_stdout_sink
<
std
::
mutex
>
wincolor_stdout_sink_mt
;
typedef
wincolor_stdout_sink
<
details
::
null_mutex
>
wincolor_stdout_sink_st
;
using
wincolor_stdout_sink_mt
=
wincolor_stdout_sink
<
std
::
mutex
>
;
using
wincolor_stdout_sink_st
=
wincolor_stdout_sink
<
details
::
null_mutex
>
;
//
// windows color console to stderr
...
...
@@ -114,8 +114,8 @@ public:
{}
};
typedef
wincolor_stderr_sink
<
std
::
mutex
>
wincolor_stderr_sink_mt
;
typedef
wincolor_stderr_sink
<
details
::
null_mutex
>
wincolor_stderr_sink_st
;
using
wincolor_stderr_sink_mt
=
wincolor_stderr_sink
<
std
::
mutex
>
;
using
wincolor_stderr_sink_st
=
wincolor_stderr_sink
<
details
::
null_mutex
>
;
}
}
include/spdlog/sinks/windebug_sink.h
View file @
7f4c1bb7
...
...
@@ -20,8 +20,8 @@ namespace sinks
template
<
class
Mutex
>
using
windebug_sink
=
msvc_sink
<
Mutex
>
;
typedef
msvc_sink_mt
windebug
_sink_mt
;
typedef
msvc_sink_st
windebug
_sink_st
;
using
windebug_sink_mt
=
msvc
_sink_mt
;
using
windebug_sink_st
=
msvc
_sink_st
;
}
}
...
...
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