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
8c38b4ee
Commit
8c38b4ee
authored
9 years ago
by
gabime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MIT license
parent
0f76db88
Hide whitespace changes
Inline
Side-by-side
Showing
42 changed files
with
200 additions
and
733 deletions
+200
-733
LICENSE
LICENSE
+22
-23
boost-bench-mt.cpp
bench/boost-bench-mt.cpp
+5
-0
boost-bench.cpp
bench/boost-bench.cpp
+4
-0
easylogging-bench-mt.cpp
bench/easylogging-bench-mt.cpp
+5
-0
easylogging-bench.cpp
bench/easylogging-bench.cpp
+6
-0
g2log-async.cpp
bench/g2log-async.cpp
+5
-0
glog-bench-mt.cpp
bench/glog-bench-mt.cpp
+5
-0
glog-bench.cpp
bench/glog-bench.cpp
+4
-0
spdlog-async.cpp
bench/spdlog-async.cpp
+4
-0
spdlog-bench-mt.cpp
bench/spdlog-bench-mt.cpp
+5
-0
spdlog-bench.cpp
bench/spdlog-bench.cpp
+4
-0
bench.cpp
example/bench.cpp
+4
-23
example.cpp
example/example.cpp
+4
-24
utils.h
example/utils.h
+4
-23
async_logger.h
include/spdlog/async_logger.h
+4
-23
common.h
include/spdlog/common.h
+4
-23
async_log_helper.h
include/spdlog/details/async_log_helper.h
+5
-24
async_logger_impl.h
include/spdlog/details/async_logger_impl.h
+6
-28
file_helper.h
include/spdlog/details/file_helper.h
+4
-23
line_logger.h
include/spdlog/details/line_logger.h
+4
-24
log_msg.h
include/spdlog/details/log_msg.h
+4
-23
logger_impl.h
include/spdlog/details/logger_impl.h
+4
-27
mpmc_bounded_q.h
include/spdlog/details/mpmc_bounded_q.h
+3
-21
null_mutex.h
include/spdlog/details/null_mutex.h
+4
-23
os.h
include/spdlog/details/os.h
+4
-23
pattern_formatter_impl.h
include/spdlog/details/pattern_formatter_impl.h
+4
-23
registry.h
include/spdlog/details/registry.h
+5
-23
spdlog_impl.h
include/spdlog/details/spdlog_impl.h
+4
-23
formatter.h
include/spdlog/formatter.h
+5
-23
logger.h
include/spdlog/logger.h
+4
-23
android_sink.h
include/spdlog/sinks/android_sink.h
+4
-24
base_sink.h
include/spdlog/sinks/base_sink.h
+4
-23
dist_sink.h
include/spdlog/sinks/dist_sink.h
+4
-24
file_sinks.h
include/spdlog/sinks/file_sinks.h
+4
-25
null_sink.h
include/spdlog/sinks/null_sink.h
+4
-23
ostream_sink.h
include/spdlog/sinks/ostream_sink.h
+4
-23
sink.h
include/spdlog/sinks/sink.h
+5
-23
stdout_sinks.h
include/spdlog/sinks/stdout_sinks.h
+4
-23
syslog_sink.h
include/spdlog/sinks/syslog_sink.h
+4
-23
spdlog.h
include/spdlog/spdlog.h
+5
-25
tweakme.h
include/spdlog/tweakme.h
+6
-27
file_log.cpp
tests/file_log.cpp
+3
-0
No files found.
LICENSE
View file @
8c38b4ee
/*************************************************************************/
The MIT License (MIT)
/* spdlog - an extremely fast and easy to use c++11 logging library. */
/* Copyright (c) 2014 Gabi Melman. */
Copyright (c) 2015 Gabi Melman.
/* */
/* Permission is hereby granted, free of charge, to any person obtaining */
Permission is hereby granted, free of charge, to any person obtaining a copy
/* a copy of this software and associated documentation files (the */
of this software and associated documentation files (the "Software"), to deal
/* "Software"), to deal in the Software without restriction, including */
in the Software without restriction, including without limitation the rights
/* without limitation the rights to use, copy, modify, merge, publish, */
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
/* distribute, sublicense, and/or sell copies of the Software, and to */
copies of the Software, and to permit persons to whom the Software is
/* permit persons to whom the Software is furnished to do so, subject to */
furnished to do so, subject to the following conditions:
/* the following conditions: */
/* */
The above copyright notice and this permission notice shall be included in
/* The above copyright notice and this permission notice shall be */
all copies or substantial portions of the Software.
/* included in all copies or substantial portions of the Software. */
/* */
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.*/
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
THE SOFTWARE.
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/
This diff is collapsed.
Click to expand it.
bench/boost-bench-mt.cpp
View file @
8c38b4ee
//
// Copyright(c) 2015 Gabi Melman.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
//
#include <thread>
#include <thread>
#include <vector>
#include <vector>
#include <atomic>
#include <atomic>
...
...
This diff is collapsed.
Click to expand it.
bench/boost-bench.cpp
View file @
8c38b4ee
//
// Copyright(c) 2015 Gabi Melman.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
//
#include <boost/log/core.hpp>
#include <boost/log/core.hpp>
#include <boost/log/trivial.hpp>
#include <boost/log/trivial.hpp>
...
...
This diff is collapsed.
Click to expand it.
bench/easylogging-bench-mt.cpp
View file @
8c38b4ee
//
// Copyright(c) 2015 Gabi Melman.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
//
#include <thread>
#include <thread>
#include <vector>
#include <vector>
#include <atomic>
#include <atomic>
...
...
This diff is collapsed.
Click to expand it.
bench/easylogging-bench.cpp
View file @
8c38b4ee
//
// Copyright(c) 2015 Gabi Melman.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
//
#include "easylogging++.h"
#include "easylogging++.h"
_INITIALIZE_EASYLOGGINGPP
_INITIALIZE_EASYLOGGINGPP
...
...
This diff is collapsed.
Click to expand it.
bench/g2log-async.cpp
View file @
8c38b4ee
//
// Copyright(c) 2015 Gabi Melman.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
//
#include <thread>
#include <thread>
#include <vector>
#include <vector>
#include <atomic>
#include <atomic>
...
...
This diff is collapsed.
Click to expand it.
bench/glog-bench-mt.cpp
View file @
8c38b4ee
//
// Copyright(c) 2015 Gabi Melman.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
//
#include <thread>
#include <thread>
#include <vector>
#include <vector>
#include <atomic>
#include <atomic>
...
...
This diff is collapsed.
Click to expand it.
bench/glog-bench.cpp
View file @
8c38b4ee
//
// Copyright(c) 2015 Gabi Melman.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
//
#include "glog/logging.h"
#include "glog/logging.h"
...
...
This diff is collapsed.
Click to expand it.
bench/spdlog-async.cpp
View file @
8c38b4ee
//
// Copyright(c) 2015 Gabi Melman.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
//
#include <thread>
#include <thread>
#include <vector>
#include <vector>
...
...
This diff is collapsed.
Click to expand it.
bench/spdlog-bench-mt.cpp
View file @
8c38b4ee
//
// Copyright(c) 2015 Gabi Melman.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
//
#include <thread>
#include <thread>
#include <vector>
#include <vector>
#include <atomic>
#include <atomic>
...
...
This diff is collapsed.
Click to expand it.
bench/spdlog-bench.cpp
View file @
8c38b4ee
//
// Copyright(c) 2015 Gabi Melman.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
//
#include "spdlog/spdlog.h"
#include "spdlog/spdlog.h"
...
...
This diff is collapsed.
Click to expand it.
example/bench.cpp
View file @
8c38b4ee
/*************************************************************************/
//
/* spdlog - an extremely fast and easy to use c++11 logging library. */
// Copyright(c) 2015 Gabi Melman.
/* Copyright (c) 2014 Gabi Melman. */
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
/* */
//
/* Permission is hereby granted, free of charge, to any person obtaining */
/* a copy of this software and associated documentation files (the */
/* "Software"), to deal in the Software without restriction, including */
/* without limitation the rights to use, copy, modify, merge, publish, */
/* distribute, sublicense, and/or sell copies of the Software, and to */
/* permit persons to whom the Software is furnished to do so, subject to */
/* the following conditions: */
/* */
/* The above copyright notice and this permission notice shall be */
/* included in all copies or substantial portions of the Software. */
/* */
/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */
/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */
/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.*/
/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */
/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/
//
//
// bench.cpp : spdlog benchmarks
// bench.cpp : spdlog benchmarks
...
...
This diff is collapsed.
Click to expand it.
example/example.cpp
View file @
8c38b4ee
/*************************************************************************/
//
/* spdlog - an extremely fast and easy to use c++11 logging library. */
// Copyright(c) 2015 Gabi Melman.
/* Copyright (c) 2014 Gabi Melman. */
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
/* */
//
/* Permission is hereby granted, free of charge, to any person obtaining */
/* a copy of this software and associated documentation files (the */
/* "Software"), to deal in the Software without restriction, including */
/* without limitation the rights to use, copy, modify, merge, publish, */
/* distribute, sublicense, and/or sell copies of the Software, and to */
/* permit persons to whom the Software is furnished to do so, subject to */
/* the following conditions: */
/* */
/* The above copyright notice and this permission notice shall be */
/* included in all copies or substantial portions of the Software. */
/* */
/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */
/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */
/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.*/
/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */
/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/
//
//
// spdlog usage example
// spdlog usage example
//
//
...
...
This diff is collapsed.
Click to expand it.
example/utils.h
View file @
8c38b4ee
/*************************************************************************/
//
/* spdlog - an extremely fast and easy to use c++11 logging library. */
// Copyright(c) 2015 Gabi Melman.
/* Copyright (c) 2014 Gabi Melman. */
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
/* */
//
/* Permission is hereby granted, free of charge, to any person obtaining */
/* a copy of this software and associated documentation files (the */
/* "Software"), to deal in the Software without restriction, including */
/* without limitation the rights to use, copy, modify, merge, publish, */
/* distribute, sublicense, and/or sell copies of the Software, and to */
/* permit persons to whom the Software is furnished to do so, subject to */
/* the following conditions: */
/* */
/* The above copyright notice and this permission notice shall be */
/* included in all copies or substantial portions of the Software. */
/* */
/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */
/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */
/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.*/
/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */
/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/
#pragma once
#pragma once
...
...
This diff is collapsed.
Click to expand it.
include/spdlog/async_logger.h
View file @
8c38b4ee
/*************************************************************************/
//
/* spdlog - an extremely fast and easy to use c++11 logging library. */
// Copyright(c) 2015 Gabi Melman.
/* Copyright (c) 2014 Gabi Melman. */
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
/* */
//
/* Permission is hereby granted, free of charge, to any person obtaining */
/* a copy of this software and associated documentation files (the */
/* "Software"), to deal in the Software without restriction, including */
/* without limitation the rights to use, copy, modify, merge, publish, */
/* distribute, sublicense, and/or sell copies of the Software, and to */
/* permit persons to whom the Software is furnished to do so, subject to */
/* the following conditions: */
/* */
/* The above copyright notice and this permission notice shall be */
/* included in all copies or substantial portions of the Software. */
/* */
/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */
/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */
/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.*/
/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */
/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/
#pragma once
#pragma once
...
...
This diff is collapsed.
Click to expand it.
include/spdlog/common.h
View file @
8c38b4ee
/*************************************************************************/
//
/* spdlog - an extremely fast and easy to use c++11 logging library. */
// Copyright(c) 2015 Gabi Melman.
/* Copyright (c) 2014 Gabi Melman. */
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
/* */
//
/* Permission is hereby granted, free of charge, to any person obtaining */
/* a copy of this software and associated documentation files (the */
/* "Software"), to deal in the Software without restriction, including */
/* without limitation the rights to use, copy, modify, merge, publish, */
/* distribute, sublicense, and/or sell copies of the Software, and to */
/* permit persons to whom the Software is furnished to do so, subject to */
/* the following conditions: */
/* */
/* The above copyright notice and this permission notice shall be */
/* included in all copies or substantial portions of the Software. */
/* */
/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */
/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */
/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.*/
/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */
/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/
#pragma once
#pragma once
...
...
This diff is collapsed.
Click to expand it.
include/spdlog/details/async_log_helper.h
View file @
8c38b4ee
/*************************************************************************/
//
/* spdlog - an extremely fast and easy to use c++11 logging library. */
// Copyright(c) 2015 Gabi Melman.
/* Copyright (c) 2014 Gabi Melman. */
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
/* */
//
/* Permission is hereby granted, free of charge, to any person obtaining */
/* a copy of this software and associated documentation files (the */
/* "Software"), to deal in the Software without restriction, including */
/* without limitation the rights to use, copy, modify, merge, publish, */
/* distribute, sublicense, and/or sell copies of the Software, and to */
/* permit persons to whom the Software is furnished to do so, subject to */
/* the following conditions: */
/* */
/* The above copyright notice and this permission notice shall be */
/* included in all copies or substantial portions of the Software. */
/* */
/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */
/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */
/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.*/
/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */
/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/
// async log helper :
// async log helper :
// Process logs asynchronously using a back thread.
// Process logs asynchronously using a back thread.
...
@@ -325,7 +306,7 @@ inline bool spdlog::details::async_log_helper::process_next_msg(log_clock::time_
...
@@ -325,7 +306,7 @@ inline bool spdlog::details::async_log_helper::process_next_msg(log_clock::time_
inline
void
spdlog
::
details
::
async_log_helper
::
handle_flush_interval
(
log_clock
::
time_point
&
now
,
log_clock
::
time_point
&
last_flush
)
inline
void
spdlog
::
details
::
async_log_helper
::
handle_flush_interval
(
log_clock
::
time_point
&
now
,
log_clock
::
time_point
&
last_flush
)
{
{
auto
should_flush
=
_flush_requested
||
(
_flush_interval_ms
!=
std
::
chrono
::
milliseconds
::
zero
()
&&
now
-
last_flush
>=
_flush_interval_ms
);
auto
should_flush
=
_flush_requested
||
(
_flush_interval_ms
!=
std
::
chrono
::
milliseconds
::
zero
()
&&
now
-
last_flush
>=
_flush_interval_ms
);
if
(
should_flush
)
if
(
should_flush
)
{
{
for
(
auto
&
s
:
_sinks
)
for
(
auto
&
s
:
_sinks
)
s
->
flush
();
s
->
flush
();
...
...
This diff is collapsed.
Click to expand it.
include/spdlog/details/async_logger_impl.h
View file @
8c38b4ee
/*************************************************************************/
//
/* spdlog - an extremely fast and easy to use c++11 logging library. */
// Copyright(c) 2015 Gabi Melman.
/* Copyright (c) 2014 Gabi Melman. */
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
/* */
//
/* Permission is hereby granted, free of charge, to any person obtaining */
/* a copy of this software and associated documentation files (the */
/* "Software"), to deal in the Software without restriction, including */
/* without limitation the rights to use, copy, modify, merge, publish, */
/* distribute, sublicense, and/or sell copies of the Software, and to */
/* permit persons to whom the Software is furnished to do so, subject to */
/* the following conditions: */
/* */
/* The above copyright notice and this permission notice shall be */
/* included in all copies or substantial portions of the Software. */
/* */
/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */
/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */
/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.*/
/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */
/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/
#pragma once
#pragma once
// Async Logger implementation
// Use an async_sink (queue per logger) to perform the logging in a worker thread
#include "./async_log_helper.h"
#include "./async_log_helper.h"
//
// Async Logger implementation
// Use single async_sink (queue) to perform the logging in a worker thread
//
template
<
class
It
>
template
<
class
It
>
inline
spdlog
::
async_logger
::
async_logger
(
const
std
::
string
&
logger_name
,
inline
spdlog
::
async_logger
::
async_logger
(
const
std
::
string
&
logger_name
,
...
...
This diff is collapsed.
Click to expand it.
include/spdlog/details/file_helper.h
View file @
8c38b4ee
/*************************************************************************/
//
/* spdlog - an extremely fast and easy to use c++11 logging library. */
// Copyright(c) 2015 Gabi Melman.
/* Copyright (c) 2014 Gabi Melman. */
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
/* */
//
/* Permission is hereby granted, free of charge, to any person obtaining */
/* a copy of this software and associated documentation files (the */
/* "Software"), to deal in the Software without restriction, including */
/* without limitation the rights to use, copy, modify, merge, publish, */
/* distribute, sublicense, and/or sell copies of the Software, and to */
/* permit persons to whom the Software is furnished to do so, subject to */
/* the following conditions: */
/* */
/* The above copyright notice and this permission notice shall be */
/* included in all copies or substantial portions of the Software. */
/* */
/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */
/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */
/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.*/
/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */
/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/
#pragma once
#pragma once
...
...
This diff is collapsed.
Click to expand it.
include/spdlog/details/line_logger.h
View file @
8c38b4ee
/*************************************************************************/
//
/* spdlog - an extremely fast and easy to use c++11 logging library. */
// Copyright(c) 2015 Gabi Melman.
/* Copyright (c) 2014 Gabi Melman. */
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
/* */
//
/* Permission is hereby granted, free of charge, to any person obtaining */
/* a copy of this software and associated documentation files (the */
/* "Software"), to deal in the Software without restriction, including */
/* without limitation the rights to use, copy, modify, merge, publish, */
/* distribute, sublicense, and/or sell copies of the Software, and to */
/* permit persons to whom the Software is furnished to do so, subject to */
/* the following conditions: */
/* */
/* The above copyright notice and this permission notice shall be */
/* included in all copies or substantial portions of the Software. */
/* */
/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */
/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */
/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.*/
/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */
/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/
#pragma once
#pragma once
#include <type_traits>
#include <type_traits>
#include "../common.h"
#include "../common.h"
...
...
This diff is collapsed.
Click to expand it.
include/spdlog/details/log_msg.h
View file @
8c38b4ee
/*************************************************************************/
//
/* spdlog - an extremely fast and easy to use c++11 logging library. */
// Copyright(c) 2015 Gabi Melman.
/* Copyright (c) 2014 Gabi Melman. */
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
/* */
//
/* Permission is hereby granted, free of charge, to any person obtaining */
/* a copy of this software and associated documentation files (the */
/* "Software"), to deal in the Software without restriction, including */
/* without limitation the rights to use, copy, modify, merge, publish, */
/* distribute, sublicense, and/or sell copies of the Software, and to */
/* permit persons to whom the Software is furnished to do so, subject to */
/* the following conditions: */
/* */
/* The above copyright notice and this permission notice shall be */
/* included in all copies or substantial portions of the Software. */
/* */
/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */
/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */
/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.*/
/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */
/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/
#pragma once
#pragma once
...
...
This diff is collapsed.
Click to expand it.
include/spdlog/details/logger_impl.h
View file @
8c38b4ee
/*************************************************************************/
/* spdlog - an extremely fast and easy to use c++11 logging library. */
/* Copyright (c) 2014 Gabi Melman. */
/* */
/* Permission is hereby granted, free of charge, to any person obtaining */
/* a copy of this software and associated documentation files (the */
/* "Software"), to deal in the Software without restriction, including */
/* without limitation the rights to use, copy, modify, merge, publish, */
/* distribute, sublicense, and/or sell copies of the Software, and to */
/* permit persons to whom the Software is furnished to do so, subject to */
/* the following conditions: */
/* */
/* The above copyright notice and this permission notice shall be */
/* included in all copies or substantial portions of the Software. */
/* */
/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */
/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */
/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.*/
/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */
/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/
#pragma once
//
//
// Logger implementation
// Copyright(c) 2015 Gabi Melman.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
//
//
#
include "./line_logger.h"
#
pragma once
#include "./line_logger.h"
// create logger with given name, sinks and the default pattern formatter
// create logger with given name, sinks and the default pattern formatter
// all other ctors will call this one
// all other ctors will call this one
...
...
This diff is collapsed.
Click to expand it.
include/spdlog/details/mpmc_bounded_q.h
View file @
8c38b4ee
...
@@ -36,27 +36,9 @@ should not be interpreted as representing official policies, either expressed or
...
@@ -36,27 +36,9 @@ should not be interpreted as representing official policies, either expressed or
/*
/*
The code in its current form adds the license below:
The code in its current form adds the license below:
spdlog - an extremely fast and easy to use c++11 logging library.
Copyright(c) 2015 Gabi Melman.
Copyright (c) 2014 Gabi Melman.
Distributed under the MIT License (http://opensource.org/licenses/MIT)
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
*/
#pragma once
#pragma once
...
...
This diff is collapsed.
Click to expand it.
include/spdlog/details/null_mutex.h
View file @
8c38b4ee
/*************************************************************************/
//
/* spdlog - an extremely fast and easy to use c++11 logging library. */
// Copyright(c) 2015 Gabi Melman.
/* Copyright (c) 2014 Gabi Melman. */
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
/* */
//
/* Permission is hereby granted, free of charge, to any person obtaining */
/* a copy of this software and associated documentation files (the */
/* "Software"), to deal in the Software without restriction, including */
/* without limitation the rights to use, copy, modify, merge, publish, */
/* distribute, sublicense, and/or sell copies of the Software, and to */
/* permit persons to whom the Software is furnished to do so, subject to */
/* the following conditions: */
/* */
/* The above copyright notice and this permission notice shall be */
/* included in all copies or substantial portions of the Software. */
/* */
/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */
/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */
/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.*/
/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */
/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/
#pragma once
#pragma once
...
...
This diff is collapsed.
Click to expand it.
include/spdlog/details/os.h
View file @
8c38b4ee
/*************************************************************************/
//
/* spdlog - an extremely fast and easy to use c++11 logging library. */
// Copyright(c) 2015 Gabi Melman.
/* Copyright (c) 2014 Gabi Melman. */
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
/* */
//
/* Permission is hereby granted, free of charge, to any person obtaining */
/* a copy of this software and associated documentation files (the */
/* "Software"), to deal in the Software without restriction, including */
/* without limitation the rights to use, copy, modify, merge, publish, */
/* distribute, sublicense, and/or sell copies of the Software, and to */
/* permit persons to whom the Software is furnished to do so, subject to */
/* the following conditions: */
/* */
/* The above copyright notice and this permission notice shall be */
/* included in all copies or substantial portions of the Software. */
/* */
/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */
/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */
/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.*/
/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */
/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/
#pragma once
#pragma once
#include<string>
#include<string>
...
...
This diff is collapsed.
Click to expand it.
include/spdlog/details/pattern_formatter_impl.h
View file @
8c38b4ee
/*************************************************************************/
//
/* spdlog - an extremely fast and easy to use c++11 logging library. */
// Copyright(c) 2015 Gabi Melman.
/* Copyright (c) 2014 Gabi Melman. */
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
/* */
//
/* Permission is hereby granted, free of charge, to any person obtaining */
/* a copy of this software and associated documentation files (the */
/* "Software"), to deal in the Software without restriction, including */
/* without limitation the rights to use, copy, modify, merge, publish, */
/* distribute, sublicense, and/or sell copies of the Software, and to */
/* permit persons to whom the Software is furnished to do so, subject to */
/* the following conditions: */
/* */
/* The above copyright notice and this permission notice shall be */
/* included in all copies or substantial portions of the Software. */
/* */
/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */
/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */
/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.*/
/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */
/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/
#pragma once
#pragma once
...
...
This diff is collapsed.
Click to expand it.
include/spdlog/details/registry.h
View file @
8c38b4ee
/*************************************************************************/
//
/* spdlog - an extremely fast and easy to use c++11 logging library. */
// Copyright(c) 2015 Gabi Melman.
/* Copyright (c) 2014 Gabi Melman. */
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
/* */
//
/* Permission is hereby granted, free of charge, to any person obtaining */
/* a copy of this software and associated documentation files (the */
/* "Software"), to deal in the Software without restriction, including */
/* without limitation the rights to use, copy, modify, merge, publish, */
/* distribute, sublicense, and/or sell copies of the Software, and to */
/* permit persons to whom the Software is furnished to do so, subject to */
/* the following conditions: */
/* */
/* The above copyright notice and this permission notice shall be */
/* included in all copies or substantial portions of the Software. */
/* */
/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */
/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */
/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.*/
/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */
/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/
#pragma once
#pragma once
// Loggers registy of unique name->logger pointer
// Loggers registy of unique name->logger pointer
// An attempt to create a logger with an alreasy existing name will be ignored
// An attempt to create a logger with an alreasy existing name will be ignored
// If user requests a non existing logger, nullptr will be returned
// If user requests a non existing logger, nullptr will be returned
...
...
This diff is collapsed.
Click to expand it.
include/spdlog/details/spdlog_impl.h
View file @
8c38b4ee
/*************************************************************************/
//
/* spdlog - an extremely fast and easy to use c++11 logging library. */
// Copyright(c) 2015 Gabi Melman.
/* Copyright (c) 2014 Gabi Melman. */
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
/* */
//
/* Permission is hereby granted, free of charge, to any person obtaining */
/* a copy of this software and associated documentation files (the */
/* "Software"), to deal in the Software without restriction, including */
/* without limitation the rights to use, copy, modify, merge, publish, */
/* distribute, sublicense, and/or sell copies of the Software, and to */
/* permit persons to whom the Software is furnished to do so, subject to */
/* the following conditions: */
/* */
/* The above copyright notice and this permission notice shall be */
/* included in all copies or substantial portions of the Software. */
/* */
/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */
/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */
/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.*/
/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */
/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/
#pragma once
#pragma once
...
...
This diff is collapsed.
Click to expand it.
include/spdlog/formatter.h
View file @
8c38b4ee
/*************************************************************************/
//
/* spdlog - an extremely fast and easy to use c++11 logging library. */
// Copyright(c) 2015 Gabi Melman.
/* Copyright (c) 2014 Gabi Melman. */
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
/* */
//
/* Permission is hereby granted, free of charge, to any person obtaining */
/* a copy of this software and associated documentation files (the */
/* "Software"), to deal in the Software without restriction, including */
/* without limitation the rights to use, copy, modify, merge, publish, */
/* distribute, sublicense, and/or sell copies of the Software, and to */
/* permit persons to whom the Software is furnished to do so, subject to */
/* the following conditions: */
/* */
/* The above copyright notice and this permission notice shall be */
/* included in all copies or substantial portions of the Software. */
/* */
/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */
/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */
/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.*/
/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */
/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/
#pragma once
#pragma once
#include "details/log_msg.h"
#include "details/log_msg.h"
...
...
This diff is collapsed.
Click to expand it.
include/spdlog/logger.h
View file @
8c38b4ee
/*************************************************************************/
//
/* spdlog - an extremely fast and easy to use c++11 logging library. */
// Copyright(c) 2015 Gabi Melman.
/* Copyright (c) 2014 Gabi Melman. */
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
/* */
//
/* Permission is hereby granted, free of charge, to any person obtaining */
/* a copy of this software and associated documentation files (the */
/* "Software"), to deal in the Software without restriction, including */
/* without limitation the rights to use, copy, modify, merge, publish, */
/* distribute, sublicense, and/or sell copies of the Software, and to */
/* permit persons to whom the Software is furnished to do so, subject to */
/* the following conditions: */
/* */
/* The above copyright notice and this permission notice shall be */
/* included in all copies or substantial portions of the Software. */
/* */
/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */
/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */
/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.*/
/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */
/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/
#pragma once
#pragma once
...
...
This diff is collapsed.
Click to expand it.
include/spdlog/sinks/android_sink.h
View file @
8c38b4ee
/*************************************************************************/
//
/* spdlog - an extremely fast and easy to use c++11 logging library. */
// Copyright(c) 2015 Gabi Melman.
/* Copyright (c) 2014 Gabi Melman. */
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
/* Copyright (c) 2015 Ruslan Baratov. */
//
/* */
/* Permission is hereby granted, free of charge, to any person obtaining */
/* a copy of this software and associated documentation files (the */
/* "Software"), to deal in the Software without restriction, including */
/* without limitation the rights to use, copy, modify, merge, publish, */
/* distribute, sublicense, and/or sell copies of the Software, and to */
/* permit persons to whom the Software is furnished to do so, subject to */
/* the following conditions: */
/* */
/* The above copyright notice and this permission notice shall be */
/* included in all copies or substantial portions of the Software. */
/* */
/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */
/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */
/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.*/
/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */
/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/
#pragma once
#pragma once
...
...
This diff is collapsed.
Click to expand it.
include/spdlog/sinks/base_sink.h
View file @
8c38b4ee
/*************************************************************************/
//
/* spdlog - an extremely fast and easy to use c++11 logging library. */
// Copyright(c) 2015 Gabi Melman.
/* Copyright (c) 2014 Gabi Melman. */
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
/* */
//
/* Permission is hereby granted, free of charge, to any person obtaining */
/* a copy of this software and associated documentation files (the */
/* "Software"), to deal in the Software without restriction, including */
/* without limitation the rights to use, copy, modify, merge, publish, */
/* distribute, sublicense, and/or sell copies of the Software, and to */
/* permit persons to whom the Software is furnished to do so, subject to */
/* the following conditions: */
/* */
/* The above copyright notice and this permission notice shall be */
/* included in all copies or substantial portions of the Software. */
/* */
/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */
/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */
/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.*/
/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */
/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/
#pragma once
#pragma once
//
//
...
...
This diff is collapsed.
Click to expand it.
include/spdlog/sinks/dist_sink.h
View file @
8c38b4ee
/*************************************************************************/
//
/* spdlog - an extremely fast and easy to use c++11 logging library. */
// Copyright (c) 2015 David Schury, Gabi Melman
/* Copyright (c) 2015 David Schury. */
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
/* Copyright (c) 2014 Gabi Melman. */
//
/* */
/* Permission is hereby granted, free of charge, to any person obtaining */
/* a copy of this software and associated documentation files (the */
/* "Software"), to deal in the Software without restriction, including */
/* without limitation the rights to use, copy, modify, merge, publish, */
/* distribute, sublicense, and/or sell copies of the Software, and to */
/* permit persons to whom the Software is furnished to do so, subject to */
/* the following conditions: */
/* */
/* The above copyright notice and this permission notice shall be */
/* included in all copies or substantial portions of the Software. */
/* */
/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */
/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */
/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.*/
/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */
/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/
#pragma once
#pragma once
...
...
This diff is collapsed.
Click to expand it.
include/spdlog/sinks/file_sinks.h
View file @
8c38b4ee
/*************************************************************************/
//
/* spdlog - an extremely fast and easy to use c++11 logging library. */
// Copyright(c) 2015 Gabi Melman.
/* Copyright (c) 2014 Gabi Melman. */
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
/* */
//
/* Permission is hereby granted, free of charge, to any person obtaining */
/* a copy of this software and associated documentation files (the */
/* "Software"), to deal in the Software without restriction, including */
/* without limitation the rights to use, copy, modify, merge, publish, */
/* distribute, sublicense, and/or sell copies of the Software, and to */
/* permit persons to whom the Software is furnished to do so, subject to */
/* the following conditions: */
/* */
/* The above copyright notice and this permission notice shall be */
/* included in all copies or substantial portions of the Software. */
/* */
/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */
/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */
/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.*/
/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */
/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/
#pragma once
#include <mutex>
#include <mutex>
#include "base_sink.h"
#include "base_sink.h"
...
...
This diff is collapsed.
Click to expand it.
include/spdlog/sinks/null_sink.h
View file @
8c38b4ee
/*************************************************************************/
//
/* spdlog - an extremely fast and easy to use c++11 logging library. */
// Copyright(c) 2015 Gabi Melman.
/* Copyright (c) 2014 Gabi Melman. */
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
/* */
//
/* Permission is hereby granted, free of charge, to any person obtaining */
/* a copy of this software and associated documentation files (the */
/* "Software"), to deal in the Software without restriction, including */
/* without limitation the rights to use, copy, modify, merge, publish, */
/* distribute, sublicense, and/or sell copies of the Software, and to */
/* permit persons to whom the Software is furnished to do so, subject to */
/* the following conditions: */
/* */
/* The above copyright notice and this permission notice shall be */
/* included in all copies or substantial portions of the Software. */
/* */
/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */
/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */
/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.*/
/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */
/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/
#pragma once
#pragma once
#include <mutex>
#include <mutex>
...
...
This diff is collapsed.
Click to expand it.
include/spdlog/sinks/ostream_sink.h
View file @
8c38b4ee
/*************************************************************************/
//
/* spdlog - an extremely fast and easy to use c++11 logging library. */
// Copyright(c) 2015 Gabi Melman.
/* Copyright (c) 2014 Gabi Melman. */
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
/* */
//
/* Permission is hereby granted, free of charge, to any person obtaining */
/* a copy of this software and associated documentation files (the */
/* "Software"), to deal in the Software without restriction, including */
/* without limitation the rights to use, copy, modify, merge, publish, */
/* distribute, sublicense, and/or sell copies of the Software, and to */
/* permit persons to whom the Software is furnished to do so, subject to */
/* the following conditions: */
/* */
/* The above copyright notice and this permission notice shall be */
/* included in all copies or substantial portions of the Software. */
/* */
/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */
/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */
/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.*/
/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */
/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/
#pragma once
#pragma once
...
...
This diff is collapsed.
Click to expand it.
include/spdlog/sinks/sink.h
View file @
8c38b4ee
/*************************************************************************/
//
/* spdlog - an extremely fast and easy to use c++11 logging library. */
// Copyright(c) 2015 Gabi Melman.
/* Copyright (c) 2014 Gabi Melman. */
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
/* */
//
/* Permission is hereby granted, free of charge, to any person obtaining */
/* a copy of this software and associated documentation files (the */
/* "Software"), to deal in the Software without restriction, including */
/* without limitation the rights to use, copy, modify, merge, publish, */
/* distribute, sublicense, and/or sell copies of the Software, and to */
/* permit persons to whom the Software is furnished to do so, subject to */
/* the following conditions: */
/* */
/* The above copyright notice and this permission notice shall be */
/* included in all copies or substantial portions of the Software. */
/* */
/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */
/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */
/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.*/
/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */
/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/
#pragma once
#pragma once
...
...
This diff is collapsed.
Click to expand it.
include/spdlog/sinks/stdout_sinks.h
View file @
8c38b4ee
/*************************************************************************/
//
/* spdlog - an extremely fast and easy to use c++11 logging library. */
// Copyright(c) 2015 Gabi Melman.
/* Copyright (c) 2014 Gabi Melman. */
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
/* */
//
/* Permission is hereby granted, free of charge, to any person obtaining */
/* a copy of this software and associated documentation files (the */
/* "Software"), to deal in the Software without restriction, including */
/* without limitation the rights to use, copy, modify, merge, publish, */
/* distribute, sublicense, and/or sell copies of the Software, and to */
/* permit persons to whom the Software is furnished to do so, subject to */
/* the following conditions: */
/* */
/* The above copyright notice and this permission notice shall be */
/* included in all copies or substantial portions of the Software. */
/* */
/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */
/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */
/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.*/
/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */
/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/
#pragma once
#pragma once
...
...
This diff is collapsed.
Click to expand it.
include/spdlog/sinks/syslog_sink.h
View file @
8c38b4ee
/*************************************************************************/
//
/* spdlog - an extremely fast and easy to use c++11 logging library. */
// Copyright(c) 2015 Gabi Melman.
/* Copyright (c) 2014 Gabi Melman. */
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
/* */
//
/* Permission is hereby granted, free of charge, to any person obtaining */
/* a copy of this software and associated documentation files (the */
/* "Software"), to deal in the Software without restriction, including */
/* without limitation the rights to use, copy, modify, merge, publish, */
/* distribute, sublicense, and/or sell copies of the Software, and to */
/* permit persons to whom the Software is furnished to do so, subject to */
/* the following conditions: */
/* */
/* The above copyright notice and this permission notice shall be */
/* included in all copies or substantial portions of the Software. */
/* */
/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */
/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */
/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.*/
/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */
/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/
#pragma once
#pragma once
...
...
This diff is collapsed.
Click to expand it.
include/spdlog/spdlog.h
View file @
8c38b4ee
/*************************************************************************/
//
/* spdlog - an extremely fast and easy to use c++11 logging library. */
// Copyright(c) 2015 Gabi Melman.
/* Copyright (c) 2014 Gabi Melman. */
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
/* */
//
/* Permission is hereby granted, free of charge, to any person obtaining */
/* a copy of this software and associated documentation files (the */
/* "Software"), to deal in the Software without restriction, including */
/* without limitation the rights to use, copy, modify, merge, publish, */
/* distribute, sublicense, and/or sell copies of the Software, and to */
/* permit persons to whom the Software is furnished to do so, subject to */
/* the following conditions: */
/* */
/* The above copyright notice and this permission notice shall be */
/* included in all copies or substantial portions of the Software. */
/* */
/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */
/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */
/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.*/
/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */
/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/
// spdlog main header file.
// spdlog main header file.
//see example.cpp for usage example
//
see example.cpp for usage example
#pragma once
#pragma once
...
...
This diff is collapsed.
Click to expand it.
include/spdlog/tweakme.h
View file @
8c38b4ee
/*************************************************************************/
//
/* spdlog - an extremely fast and easy to use c++11 logging library. */
// Copyright(c) 2015 Gabi Melman.
/* Copyright (c) 2014 Gabi Melman. */
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
/* */
//
/* Permission is hereby granted, free of charge, to any person obtaining */
/* a copy of this software and associated documentation files (the */
/* "Software"), to deal in the Software without restriction, including */
/* without limitation the rights to use, copy, modify, merge, publish, */
/* distribute, sublicense, and/or sell copies of the Software, and to */
/* permit persons to whom the Software is furnished to do so, subject to */
/* the following conditions: */
/* */
/* The above copyright notice and this permission notice shall be */
/* included in all copies or substantial portions of the Software. */
/* */
/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */
/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */
/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.*/
/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */
/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/
#pragma once
#pragma once
//
/////////////////////////////////////////////////////////////////////////////
//
// Edit this file to squeeze every last drop of performance out of spdlog.
// Edit this file to squeeze every last drop of performance out of spdlog.
///////////////////////////////////////////////////////////////////////////////
//
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
// Under Linux, the much faster CLOCK_REALTIME_COARSE clock can be used.
// Under Linux, the much faster CLOCK_REALTIME_COARSE clock can be used.
...
...
This diff is collapsed.
Click to expand it.
tests/file_log.cpp
View file @
8c38b4ee
/*
* This content is released under the MIT License as specified in https://raw.githubusercontent.com/gabime/spdlog/master/LICENSE
*/
#include "includes.h"
#include "includes.h"
static
std
::
string
file_contents
(
const
std
::
string
&
filename
)
static
std
::
string
file_contents
(
const
std
::
string
&
filename
)
...
...
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