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
3463dcd1
Commit
3463dcd1
authored
May 06, 2014
by
gabime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
log_msg.h
parent
bde2d24a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
1 deletion
+26
-1
example.cpp
example/example.cpp
+1
-1
log_msg.h
include/c11log/details/log_msg.h
+25
-0
No files found.
example/example.cpp
View file @
3463dcd1
...
...
@@ -35,7 +35,7 @@ int main(int argc, char* argv[])
auto
start
=
system_clock
::
now
();
for
(
unsigned
int
i
=
1
;
i
<=
howmany
;
++
i
)
my_logger
.
info
(
"Hello logger: "
);
my_logger
.
info
(
"Hello logger: "
)
<<
4.5
<<
123
<<
"asdasd"
<<
123
<<
'f'
;
//auto s = howmany - as->q().size();
auto
s
=
howmany
;
...
...
include/c11log/details/log_msg.h
0 → 100644
View file @
3463dcd1
#pragma once
namespace
c11log
{
namespace
details
{
struct
log_msg
{
log_msg
()
=
default
;
log_msg
(
level
::
level_enum
l
)
:
msg_level
(
l
)
{};
log_msg
(
const
log_msg
&
other
)
{
msg_buf
=
other
.
msg_buf
;
msg_time
=
other
.
msg_time
;
msg_header_size
=
other
.
msg_header_size
;
msg_level
=
other
.
msg_level
;
}
bufpair_t
msg_buf
;
log_clock
::
time_point
msg_time
;
std
::
size_t
msg_header_size
;
level
::
level_enum
msg_level
;
};
}
}
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