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
8b4eedb5
Commit
8b4eedb5
authored
5 years ago
by
gabime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More template instantiations for static lib
parent
01f5efa1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
54 additions
and
18 deletions
+54
-18
stdout_color_sinks-inl.h
include/spdlog/sinks/stdout_color_sinks-inl.h
+35
-0
stdout_color_sinks.h
include/spdlog/sinks/stdout_color_sinks.h
+10
-16
wincolor_sink-inl.h
include/spdlog/sinks/wincolor_sink-inl.h
+4
-2
wincolor_sink.h
include/spdlog/sinks/wincolor_sink.h
+5
-0
No files found.
include/spdlog/sinks/stdout_color_sinks-inl.h
0 → 100644
View file @
8b4eedb5
// Copyright(c) 2015-present Gabi Melman & spdlog contributors.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
#pragma once
#include "spdlog/logger.h"
#include "spdlog/common.h"
namespace
spdlog
{
template
<
typename
Factory
>
SPDLOG_INLINE
std
::
shared_ptr
<
logger
>
stdout_color_mt
(
const
std
::
string
&
logger_name
)
{
return
Factory
::
template
create
<
sinks
::
stdout_color_sink_mt
>
(
logger_name
);
}
template
<
typename
Factory
>
SPDLOG_INLINE
std
::
shared_ptr
<
logger
>
stdout_color_st
(
const
std
::
string
&
logger_name
)
{
return
Factory
::
template
create
<
sinks
::
stdout_color_sink_st
>
(
logger_name
);
}
template
<
typename
Factory
>
SPDLOG_INLINE
std
::
shared_ptr
<
logger
>
stderr_color_mt
(
const
std
::
string
&
logger_name
)
{
return
Factory
::
template
create
<
sinks
::
stderr_color_sink_mt
>
(
logger_name
);
}
template
<
typename
Factory
>
SPDLOG_INLINE
std
::
shared_ptr
<
logger
>
stderr_color_st
(
const
std
::
string
&
logger_name
)
{
return
Factory
::
template
create
<
sinks
::
stderr_color_sink_st
>
(
logger_name
);
}
}
// namespace spdlog
\ No newline at end of file
This diff is collapsed.
Click to expand it.
include/spdlog/sinks/stdout_color_sinks.h
View file @
8b4eedb5
...
...
@@ -29,26 +29,19 @@ using stderr_color_sink_st = ansicolor_stderr_sink_st;
}
// namespace sinks
template
<
typename
Factory
=
default_factory
>
inline
std
::
shared_ptr
<
logger
>
stdout_color_mt
(
const
std
::
string
&
logger_name
)
{
return
Factory
::
template
create
<
sinks
::
stdout_color_sink_mt
>
(
logger_name
);
}
std
::
shared_ptr
<
logger
>
stdout_color_mt
(
const
std
::
string
&
logger_name
);
template
<
typename
Factory
=
default_factory
>
inline
std
::
shared_ptr
<
logger
>
stdout_color_st
(
const
std
::
string
&
logger_name
)
{
return
Factory
::
template
create
<
sinks
::
stdout_color_sink_st
>
(
logger_name
);
}
std
::
shared_ptr
<
logger
>
stdout_color_st
(
const
std
::
string
&
logger_name
);
template
<
typename
Factory
=
default_factory
>
inline
std
::
shared_ptr
<
logger
>
stderr_color_mt
(
const
std
::
string
&
logger_name
)
{
return
Factory
::
template
create
<
sinks
::
stderr_color_sink_mt
>
(
logger_name
);
}
std
::
shared_ptr
<
logger
>
stderr_color_mt
(
const
std
::
string
&
logger_name
);
template
<
typename
Factory
=
default_factory
>
inline
std
::
shared_ptr
<
logger
>
stderr_color_st
(
const
std
::
string
&
logger_name
)
{
return
Factory
::
template
create
<
sinks
::
stderr_color_sink_st
>
(
logger_name
);
}
std
::
shared_ptr
<
logger
>
stderr_color_st
(
const
std
::
string
&
logger_name
);
}
// namespace spdlog
#ifdef SPDLOG_HEADER_ONLY
#include "stdout_color_sinks-inl.h"
#endif
\ No newline at end of file
This diff is collapsed.
Click to expand it.
include/spdlog/sinks/wincolor_sink-inl.h
View file @
8b4eedb5
#pragma once
// Copyright(c) 2015-present Gabi Melman & spdlog contributors.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
#pragma once
namespace
spdlog
{
namespace
sinks
{
...
...
@@ -18,7 +20,7 @@ SPDLOG_INLINE wincolor_sink<TargetStream, ConsoleMutex>::wincolor_sink()
}
template
<
typename
TargetStream
,
typename
ConsoleMutex
>
SPDLOG_INLINE
SPDLOG_INLINE
wincolor_sink
<
TargetStream
,
ConsoleMutex
>::~
wincolor_sink
()
SPDLOG_INLINE
wincolor_sink
<
TargetStream
,
ConsoleMutex
>::~
wincolor_sink
()
{
this
->
flush
();
}
...
...
This diff is collapsed.
Click to expand it.
include/spdlog/sinks/wincolor_sink.h
View file @
8b4eedb5
...
...
@@ -69,3 +69,7 @@ using wincolor_stderr_sink_st = wincolor_sink<details::console_stderr, details::
}
// namespace sinks
}
// namespace spdlog
#ifdef SPDLOG_HEADER_ONLY
#include "wincolor_sink-inl.h"
#endif
\ No newline at end of file
This diff is collapsed.
Click to expand it.
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