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
d163b8c4
Commit
d163b8c4
authored
Dec 21, 2014
by
gabime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
astyle
parent
58308df3
Changes
22
Show whitespace changes
Inline
Side-by-side
Showing
22 changed files
with
2313 additions
and
2313 deletions
+2313
-2313
astyle.sh
astyle.sh
+1
-1
bench/boost-bench-mt.cpp
bench/boost-bench-mt.cpp
+38
-38
bench/boost-bench.cpp
bench/boost-bench.cpp
+19
-19
bench/easylogging-bench-mt.cpp
bench/easylogging-bench-mt.cpp
+33
-33
bench/easylogging-bench.cpp
bench/easylogging-bench.cpp
+7
-7
bench/g2log-async.cpp
bench/g2log-async.cpp
+34
-34
bench/glog-bench-mt.cpp
bench/glog-bench-mt.cpp
+33
-33
bench/glog-bench.cpp
bench/glog-bench.cpp
+7
-7
bench/spdlog-async.cpp
bench/spdlog-async.cpp
+38
-38
bench/spdlog-bench-mt.cpp
bench/spdlog-bench-mt.cpp
+26
-26
bench/spdlog-bench.cpp
bench/spdlog-bench.cpp
+8
-8
example/bench.cpp
example/bench.cpp
+93
-93
example/example.cpp
example/example.cpp
+49
-49
example/utils.h
example/utils.h
+10
-10
include/spdlog/async_logger.h
include/spdlog/async_logger.h
+9
-9
include/spdlog/common.h
include/spdlog/common.h
+9
-8
include/spdlog/details/async_log_helper.h
include/spdlog/details/async_log_helper.h
+139
-139
include/spdlog/details/async_logger_impl.h
include/spdlog/details/async_logger_impl.h
+10
-10
include/spdlog/details/file_helper.h
include/spdlog/details/file_helper.h
+78
-78
include/spdlog/details/format.h
include/spdlog/details/format.h
+1560
-1560
include/spdlog/details/line_logger.h
include/spdlog/details/line_logger.h
+63
-63
include/spdlog/details/log_msg.h
include/spdlog/details/log_msg.h
+49
-50
No files found.
astyle.sh
View file @
d163b8c4
#!/bin/bash
#!/bin/bash
find
.
-name
"*
\.
h"
-o
-name
"*
\.
cpp"
|xargs dos2unix
find
.
-name
"*
\.
h"
-o
-name
"*
\.
cpp"
|xargs dos2unix
find
.
-name
"*
\.
h"
-o
-name
"*
\.
cpp"
|xargs astyle
-n
-
A1
find
.
-name
"*
\.
h"
-o
-name
"*
\.
cpp"
|xargs astyle
-n
-
c
-t4
-A1
bench/boost-bench-mt.cpp
View file @
d163b8c4
bench/boost-bench.cpp
View file @
d163b8c4
bench/easylogging-bench-mt.cpp
View file @
d163b8c4
bench/easylogging-bench.cpp
View file @
d163b8c4
bench/g2log-async.cpp
View file @
d163b8c4
bench/glog-bench-mt.cpp
View file @
d163b8c4
bench/glog-bench.cpp
View file @
d163b8c4
bench/spdlog-async.cpp
View file @
d163b8c4
bench/spdlog-bench-mt.cpp
View file @
d163b8c4
bench/spdlog-bench.cpp
View file @
d163b8c4
example/bench.cpp
View file @
d163b8c4
example/example.cpp
View file @
d163b8c4
...
@@ -76,11 +76,11 @@ int main(int, char* [])
...
@@ -76,11 +76,11 @@ int main(int, char* [])
async_file
->
info
()
<<
"This is async log.."
<<
"Should be very fast!"
;
async_file
->
info
()
<<
"This is async log.."
<<
"Should be very fast!"
;
// syslog example. linux only..
// syslog example. linux only..
#ifdef __linux__
#ifdef __linux__
std
::
string
ident
=
"spdlog-example"
;
std
::
string
ident
=
"spdlog-example"
;
auto
syslog_logger
=
spd
::
syslog_logger
(
"syslog"
,
ident
,
LOG_PID
);
auto
syslog_logger
=
spd
::
syslog_logger
(
"syslog"
,
ident
,
LOG_PID
);
syslog_logger
->
warn
(
"This is warning that will end up in syslog. This is Linux only!"
);
syslog_logger
->
warn
(
"This is warning that will end up in syslog. This is Linux only!"
);
#endif
#endif
}
}
catch
(
const
spd
::
spdlog_ex
&
ex
)
catch
(
const
spd
::
spdlog_ex
&
ex
)
...
...
example/utils.h
View file @
d163b8c4
include/spdlog/async_logger.h
View file @
d163b8c4
include/spdlog/common.h
View file @
d163b8c4
...
@@ -39,7 +39,8 @@ namespace spdlog
...
@@ -39,7 +39,8 @@ namespace spdlog
class
formatter
;
class
formatter
;
namespace
sinks
{
namespace
sinks
{
class
sink
;
class
sink
;
}
}
...
...
include/spdlog/details/async_log_helper.h
View file @
d163b8c4
include/spdlog/details/async_logger_impl.h
View file @
d163b8c4
include/spdlog/details/file_helper.h
View file @
d163b8c4
include/spdlog/details/format.h
View file @
d163b8c4
include/spdlog/details/line_logger.h
View file @
d163b8c4
include/spdlog/details/log_msg.h
View file @
d163b8c4
...
@@ -51,7 +51,6 @@ struct log_msg
...
@@ -51,7 +51,6 @@ struct log_msg
raw
<<
fmt
::
BasicStringRef
<
char
>
(
other
.
raw
.
data
(),
other
.
raw
.
size
());
raw
<<
fmt
::
BasicStringRef
<
char
>
(
other
.
raw
.
data
(),
other
.
raw
.
size
());
if
(
other
.
formatted
.
size
())
if
(
other
.
formatted
.
size
())
formatted
<<
fmt
::
BasicStringRef
<
char
>
(
other
.
formatted
.
data
(),
other
.
formatted
.
size
());
formatted
<<
fmt
::
BasicStringRef
<
char
>
(
other
.
formatted
.
data
(),
other
.
formatted
.
size
());
}
}
log_msg
(
log_msg
&&
other
)
:
log_msg
(
log_msg
&&
other
)
:
...
...
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