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
0168bf3f
Commit
0168bf3f
authored
Jan 27, 2014
by
gabime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
57cd630d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
test.cpp
src/test.cpp
+3
-3
No files found.
src/test.cpp
View file @
0168bf3f
...
@@ -17,14 +17,14 @@ int main(int argc, char* argv[])
...
@@ -17,14 +17,14 @@ int main(int argc, char* argv[])
auto
null_sink
=
std
::
make_shared
<
c11log
::
sinks
::
null_sink
>
();
auto
null_sink
=
std
::
make_shared
<
c11log
::
sinks
::
null_sink
>
();
auto
stdout_sink
=
std
::
make_shared
<
c11log
::
sinks
::
stdout_sink
>
();
auto
stdout_sink
=
std
::
make_shared
<
c11log
::
sinks
::
stdout_sink
>
();
auto
async
=
std
::
make_shared
<
c11log
::
sinks
::
async_sink
>
(
100
);
auto
async
=
std
::
make_shared
<
c11log
::
sinks
::
async_sink
>
(
100
);
auto
fsink
=
std
::
make_shared
<
c11log
::
sinks
::
rotating_file_sink
>
(
"newlog"
,
"txt"
,
1024
*
1024
*
10
,
2
);
//auto fsink = std::make_shared<c11log::sinks::rotating_file_sink>("newlog", "txt", 1024*1024*10 , 2);
auto
fsink
=
std
::
make_shared
<
c11log
::
sinks
::
midnight_file_sink
>
(
"midnight"
,
"txt"
);
async
->
add_sink
(
null_
sink
);
async
->
add_sink
(
f
sink
);
c11log
::
logger
logger
(
"test"
);
c11log
::
logger
logger
(
"test"
);
logger
.
add_sink
(
async
);
logger
.
add_sink
(
async
);
std
::
atomic
<
uint32_t
>
counter
{
0
};
std
::
atomic
<
uint32_t
>
counter
{
0
};
auto
counter_ptr
=
&
counter
;
auto
counter_ptr
=
&
counter
;
std
::
cout
<<
"Starting "
<<
nthreads
<<
" threads.."
<<
std
::
endl
;
std
::
cout
<<
"Starting "
<<
nthreads
<<
" threads.."
<<
std
::
endl
;
...
...
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