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
0d263598
Commit
0d263598
authored
Apr 20, 2016
by
gabime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
astyle
parent
0f889969
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
468 additions
and
468 deletions
+468
-468
bench/spdlog-async.cpp
bench/spdlog-async.cpp
+62
-62
bench/zf_log-bench-mt.cpp
bench/zf_log-bench-mt.cpp
+56
-56
bench/zf_log-bench.cpp
bench/zf_log-bench.cpp
+28
-28
example/example.cpp
example/example.cpp
+118
-118
include/spdlog/async_logger.h
include/spdlog/async_logger.h
+74
-74
include/spdlog/common.h
include/spdlog/common.h
+130
-130
No files found.
bench/spdlog-async.cpp
View file @
0d263598
bench/zf_log-bench-mt.cpp
View file @
0d263598
bench/zf_log-bench.cpp
View file @
0d263598
example/example.cpp
View file @
0d263598
include/spdlog/async_logger.h
View file @
0d263598
include/spdlog/common.h
View file @
0d263598
...
...
@@ -110,21 +110,21 @@ private:
// wchar support for windows file names (SPDLOG_WCHAR_FILENAMES must be defined)
//
#if defined(_WIN32) && defined(SPDLOG_WCHAR_FILENAMES)
#define SPDLOG_FILENAME_T(s) L ## s
using
filename_t
=
std
::
wstring
;
inline
std
::
string
filename_to_str
(
const
filename_t
&
filename
)
{
#define SPDLOG_FILENAME_T(s) L ## s
using
filename_t
=
std
::
wstring
;
inline
std
::
string
filename_to_str
(
const
filename_t
&
filename
)
{
std
::
wstring_convert
<
std
::
codecvt_utf8
<
wchar_t
>
,
wchar_t
>
c
;
return
c
.
to_bytes
(
filename
);
}
}
#else
#define SPDLOG_FILENAME_T(s) s
using
filename_t
=
std
::
string
;
#define SPDLOG_FILENAME_T(s) s
using
filename_t
=
std
::
string
;
inline
std
::
string
filename_to_str
(
const
filename_t
&
filename
)
{
inline
std
::
string
filename_to_str
(
const
filename_t
&
filename
)
{
return
filename
;
}
}
#endif
}
//spdlog
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