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
b0a687c1
Commit
b0a687c1
authored
Dec 02, 2014
by
gabime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
astyle
parent
4462a3c4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
format.h
include/spdlog/details/format.h
+0
-0
log_msg.h
include/spdlog/details/log_msg.h
+4
-4
async_sink.h
include/spdlog/sinks/async_sink.h
+3
-3
No files found.
include/spdlog/details/format.h
View file @
b0a687c1
This diff is collapsed.
Click to expand it.
include/spdlog/details/log_msg.h
View file @
b0a687c1
...
@@ -48,7 +48,7 @@ struct log_msg
...
@@ -48,7 +48,7 @@ struct log_msg
level
(
other
.
level
),
level
(
other
.
level
),
time
(
other
.
time
),
time
(
other
.
time
),
tm_time
(
other
.
tm_time
)
tm_time
(
other
.
tm_time
)
{
{
raw
.
write
(
other
.
raw
.
data
(),
other
.
raw
.
size
());
raw
.
write
(
other
.
raw
.
data
(),
other
.
raw
.
size
());
formatted
.
write
(
other
.
formatted
.
data
(),
other
.
formatted
.
size
());
formatted
.
write
(
other
.
formatted
.
data
(),
other
.
formatted
.
size
());
}
}
...
@@ -61,7 +61,7 @@ struct log_msg
...
@@ -61,7 +61,7 @@ struct log_msg
raw
(
std
::
move
(
other
.
raw
)),
raw
(
std
::
move
(
other
.
raw
)),
formatted
(
std
::
move
(
other
.
formatted
))
formatted
(
std
::
move
(
other
.
formatted
))
{
{
other
.
clear
();
other
.
clear
();
}
}
log_msg
&
operator
=
(
log_msg
&&
other
)
log_msg
&
operator
=
(
log_msg
&&
other
)
...
@@ -75,7 +75,7 @@ struct log_msg
...
@@ -75,7 +75,7 @@ struct log_msg
tm_time
=
other
.
tm_time
;
tm_time
=
other
.
tm_time
;
raw
=
std
::
move
(
other
.
raw
);
raw
=
std
::
move
(
other
.
raw
);
formatted
=
std
::
move
(
other
.
formatted
);
formatted
=
std
::
move
(
other
.
formatted
);
other
.
clear
();
other
.
clear
();
return
*
this
;
return
*
this
;
}
}
...
@@ -83,7 +83,7 @@ struct log_msg
...
@@ -83,7 +83,7 @@ struct log_msg
void
clear
()
void
clear
()
{
{
level
=
level
::
OFF
;
level
=
level
::
OFF
;
raw
.
clear
();
raw
.
clear
();
formatted
.
clear
();
formatted
.
clear
();
}
}
...
...
include/spdlog/sinks/async_sink.h
View file @
b0a687c1
...
@@ -112,7 +112,7 @@ inline void spdlog::sinks::async_sink::_sink_it(const details::log_msg& msg)
...
@@ -112,7 +112,7 @@ inline void spdlog::sinks::async_sink::_sink_it(const details::log_msg& msg)
{
{
_push_sentry
();
_push_sentry
();
_q
.
push
(
std
::
move
(
msg
));
_q
.
push
(
std
::
move
(
msg
));
}
}
inline
void
spdlog
::
sinks
::
async_sink
::
_thread_loop
()
inline
void
spdlog
::
sinks
::
async_sink
::
_thread_loop
()
...
@@ -131,9 +131,9 @@ inline void spdlog::sinks::async_sink::_thread_loop()
...
@@ -131,9 +131,9 @@ inline void spdlog::sinks::async_sink::_thread_loop()
{
{
_formatter
->
format
(
msg
);
_formatter
->
format
(
msg
);
for
(
auto
&
s
:
_sinks
)
for
(
auto
&
s
:
_sinks
)
s
->
log
(
msg
);
s
->
log
(
msg
);
}
}
catch
(
const
std
::
exception
&
ex
)
catch
(
const
std
::
exception
&
ex
)
{
{
...
...
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