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
46ef71e3
Commit
46ef71e3
authored
May 11, 2019
by
gabime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Normalized copyright message
parent
005450ff
Hide whitespace changes
Inline
Side-by-side
Showing
52 changed files
with
108 additions
and
132 deletions
+108
-132
example.cpp
example/example.cpp
+3
-2
async.h
include/spdlog/async.h
+1
-4
async_logger-inl.h
include/spdlog/async_logger-inl.h
+4
-2
async_logger.h
include/spdlog/async_logger.h
+1
-3
common-inl.h
include/spdlog/common-inl.h
+5
-0
common.h
include/spdlog/common.h
+1
-3
circular_q.h
include/spdlog/details/circular_q.h
+1
-3
console_globals.h
include/spdlog/details/console_globals.h
+4
-4
file_helper-inl.h
include/spdlog/details/file_helper-inl.h
+3
-3
file_helper.h
include/spdlog/details/file_helper.h
+1
-3
fmt_helper.h
include/spdlog/details/fmt_helper.h
+2
-4
log_msg-inl.h
include/spdlog/details/log_msg-inl.h
+5
-0
log_msg.h
include/spdlog/details/log_msg.h
+1
-3
mpmc_blocking_q.h
include/spdlog/details/mpmc_blocking_q.h
+3
-5
null_mutex.h
include/spdlog/details/null_mutex.h
+1
-3
os-inl.h
include/spdlog/details/os-inl.h
+2
-3
os.h
include/spdlog/details/os.h
+2
-3
pattern_formatter-inl.h
include/spdlog/details/pattern_formatter-inl.h
+3
-3
pattern_formatter.h
include/spdlog/details/pattern_formatter.h
+2
-3
periodic_worker-inl.h
include/spdlog/details/periodic_worker-inl.h
+3
-4
periodic_worker.h
include/spdlog/details/periodic_worker.h
+1
-4
registry-inl.h
include/spdlog/details/registry-inl.h
+3
-3
registry.h
include/spdlog/details/registry.h
+1
-3
thread_pool-inl.h
include/spdlog/details/thread_pool-inl.h
+4
-0
thread_pool.h
include/spdlog/details/thread_pool.h
+3
-0
formatter.h
include/spdlog/formatter.h
+1
-3
logger-inl.h
include/spdlog/logger-inl.h
+5
-0
logger.h
include/spdlog/logger.h
+1
-3
android_sink.h
include/spdlog/sinks/android_sink.h
+1
-3
ansicolor_sink-inl.h
include/spdlog/sinks/ansicolor_sink-inl.h
+5
-0
ansicolor_sink.h
include/spdlog/sinks/ansicolor_sink.h
+1
-3
base_sink-inl.h
include/spdlog/sinks/base_sink-inl.h
+5
-0
base_sink.h
include/spdlog/sinks/base_sink.h
+1
-3
basic_file_sink.h
include/spdlog/sinks/basic_file_sink.h
+1
-3
daily_file_sink.h
include/spdlog/sinks/daily_file_sink.h
+1
-3
dist_sink.h
include/spdlog/sinks/dist_sink.h
+1
-3
msvc_sink.h
include/spdlog/sinks/msvc_sink.h
+0
-2
null_sink.h
include/spdlog/sinks/null_sink.h
+1
-3
ostream_sink.h
include/spdlog/sinks/ostream_sink.h
+1
-3
rotating_file_sink.h
include/spdlog/sinks/rotating_file_sink.h
+1
-3
sink-inl.h
include/spdlog/sinks/sink-inl.h
+5
-0
sink.h
include/spdlog/sinks/sink.h
+1
-4
stdout_color_sinks.h
include/spdlog/sinks/stdout_color_sinks.h
+1
-3
stdout_sinks.h
include/spdlog/sinks/stdout_sinks.h
+1
-3
syslog_sink.h
include/spdlog/sinks/syslog_sink.h
+1
-3
systemd_sink.h
include/spdlog/sinks/systemd_sink.h
+0
-2
wincolor_sink.h
include/spdlog/sinks/wincolor_sink.h
+1
-3
spdlog.h
include/spdlog/spdlog.h
+3
-3
tweakme.h
include/spdlog/tweakme.h
+1
-3
version.h
include/spdlog/version.h
+1
-3
format.cc
src/format.cc
+4
-2
spdlog.cpp
src/spdlog.cpp
+3
-0
No files found.
example/example.cpp
View file @
46ef71e3
...
...
@@ -7,10 +7,10 @@
//
//
#include "spdlog/spdlog.h"
int
main
(
int
,
char
*
[])
{
int
main
(
int
,
char
*
[])
{
int
i
=
123
;
spdlog
::
info
(
"HELLO STATIC! {}"
,
i
);
}
\ No newline at end of file
include/spdlog/async.h
View file @
46ef71e3
//
// Copyright(c) 2018 Gabi Melman.
// Copyright(c) 2015-present Gabi Melman & spdlog contributors.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
//
#pragma once
...
...
include/spdlog/async_logger-inl.h
View file @
46ef71e3
// async logger implementation
// uses a thread pool to perform the actual logging
// Copyright(c) 2015-present Gabi Melman & spdlog contributors.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
#pragma once
#include "spdlog/sinks/sink.h"
#include "spdlog/details/thread_pool.h"
...
...
include/spdlog/async_logger.h
View file @
46ef71e3
//
// Copyright(c) 2015 Gabi Melman.
// Copyright(c) 2015-present Gabi Melman & spdlog contributors.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
//
#pragma once
...
...
include/spdlog/common-inl.h
0 → 100644
View file @
46ef71e3
// Copyright(c) 2015-present Gabi Melman & spdlog contributors.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
#pragma once
\ No newline at end of file
include/spdlog/common.h
View file @
46ef71e3
//
// Copyright(c) 2015 Gabi Melman.
// Copyright(c) 2015-present Gabi Melman & spdlog contributors.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
//
#pragma once
...
...
include/spdlog/details/circular_q.h
View file @
46ef71e3
//
// Copyright(c) 2018 Gabi Melman.
// Copyright(c) 2015-present Gabi Melman & spdlog contributors.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
//
// cirucal q view of std::vector.
#pragma once
...
...
include/spdlog/details/console_globals.h
View file @
46ef71e3
#pragma once
//
// Copyright(c) 2018 Gabi Melman.
// Copyright(c) 2015-present Gabi Melman & spdlog contributors.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
//
#pragma once
#include "spdlog/details/null_mutex.h"
#include <cstdio>
...
...
include/spdlog/details/file_helper-inl.h
View file @
46ef71e3
//
// Copyright(c) 2015 Gabi Melman.
// Copyright(c) 2015-present Gabi Melman & spdlog contributors.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
//
#pragma once
#include "spdlog/details/os.h"
...
...
include/spdlog/details/file_helper.h
View file @
46ef71e3
//
// Copyright(c) 2015 Gabi Melman.
// Copyright(c) 2015-present Gabi Melman & spdlog contributors.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
//
#pragma once
...
...
include/spdlog/details/fmt_helper.h
View file @
46ef71e3
//
// Created by gabi on 6/15/18.
//
// Copyright(c) 2015-present Gabi Melman & spdlog contributors.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
#pragma once
#include <chrono>
...
...
include/spdlog/details/log_msg-inl.h
View file @
46ef71e3
// Copyright(c) 2015-present Gabi Melman & spdlog contributors.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
#pragma once
#include "spdlog/details/os.h"
#include "spdlog/sinks/sink.h"
...
...
include/spdlog/details/log_msg.h
View file @
46ef71e3
//
// Copyright(c) 2015 Gabi Melman.
// Copyright(c) 2015-present Gabi Melman & spdlog contributors.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
//
#pragma once
...
...
include/spdlog/details/mpmc_blocking_q.h
View file @
46ef71e3
#pragma once
//
// Copyright(c) 2018 Gabi Melman.
// Copyright(c) 2015-present Gabi Melman & spdlog contributors.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
//
#pragma once
// multi producer-multi consumer blocking queue.
// enqueue(..) - will block until room found to put the new message.
...
...
include/spdlog/details/null_mutex.h
View file @
46ef71e3
//
// Copyright(c) 2015 Gabi Melman.
// Copyright(c) 2015-present Gabi Melman & spdlog contributors.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
//
#pragma once
...
...
include/spdlog/details/os-inl.h
View file @
46ef71e3
//
// Copyright(c) 2015 Gabi Melman.
// Copyright(c) 2015-present Gabi Melman & spdlog contributors.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
//
#pragma once
#include <algorithm>
#include <chrono>
#include <cstdio>
...
...
include/spdlog/details/os.h
View file @
46ef71e3
//
// Copyright(c) 2015 Gabi Melman.
// Copyright(c) 2015-present Gabi Melman & spdlog contributors.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
//
#pragma once
#include "spdlog/common.h"
...
...
include/spdlog/details/pattern_formatter-inl.h
View file @
46ef71e3
//
// Copyright(c) 2015 Gabi Melman.
// Copyright(c) 2015-present Gabi Melman & spdlog contributors.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
//
#pragma once
#include "spdlog/details/fmt_helper.h"
#include "spdlog/details/log_msg.h"
...
...
include/spdlog/details/pattern_formatter.h
View file @
46ef71e3
//
// Copyright(c) 2015 Gabi Melman.
// Copyright(c) 2015-present Gabi Melman & spdlog contributors.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
//
#pragma once
#include "spdlog/common.h"
#include "spdlog/details/log_msg.h"
#include "spdlog/details/os.h"
...
...
include/spdlog/details/periodic_worker-inl.h
View file @
46ef71e3
//
// Created by gabi on 5/8/19.
//
// Copyright(c) 2015-present Gabi Melman & spdlog contributors.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
#
include "spdlog/common.h"
#
pragma once
SPDLOG_INLINE
spdlog
::
details
::
periodic_worker
::
periodic_worker
(
const
std
::
function
<
void
()
>
&
callback_fun
,
std
::
chrono
::
seconds
interval
)
{
...
...
include/spdlog/details/periodic_worker.h
View file @
46ef71e3
//
// Copyright(c) 2018 Gabi Melman.
// Copyright(c) 2015-present Gabi Melman & spdlog contributors.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
//
#pragma once
...
...
include/spdlog/details/registry-inl.h
View file @
46ef71e3
//
// Copyright(c) 2015 Gabi Melman.
// Copyright(c) 2015-present Gabi Melman & spdlog contributors.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
//
#pragma once
#include "spdlog/common.h"
#include "spdlog/details/periodic_worker.h"
...
...
include/spdlog/details/registry.h
View file @
46ef71e3
//
// Copyright(c) 2015 Gabi Melman.
// Copyright(c) 2015-present Gabi Melman & spdlog contributors.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
//
#pragma once
...
...
include/spdlog/details/thread_pool-inl.h
View file @
46ef71e3
// Copyright(c) 2015-present Gabi Melman & spdlog contributors.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
#pragma once
#include "spdlog/common.h"
...
...
include/spdlog/details/thread_pool.h
View file @
46ef71e3
// Copyright(c) 2015-present Gabi Melman & spdlog contributors.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
#pragma once
#include "spdlog/details/fmt_helper.h"
...
...
include/spdlog/formatter.h
View file @
46ef71e3
//
// Copyright(c) 2015 Gabi Melman.
// Copyright(c) 2015-present Gabi Melman & spdlog contributors.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
//
#pragma once
...
...
include/spdlog/logger-inl.h
View file @
46ef71e3
// Copyright(c) 2015-present Gabi Melman & spdlog contributors.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
#pragma once
#include "spdlog/sinks/sink.h"
#include "spdlog/details/pattern_formatter.h"
...
...
include/spdlog/logger.h
View file @
46ef71e3
//
// Copyright(c) 2015-2108 Gabi Melman.
// Copyright(c) 2015-present Gabi Melman & spdlog contributors.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
//
#pragma once
...
...
include/spdlog/sinks/android_sink.h
View file @
46ef71e3
//
// Copyright(c) 2015 Gabi Melman.
// Copyright(c) 2015-present Gabi Melman & spdlog contributors.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
//
#pragma once
...
...
include/spdlog/sinks/ansicolor_sink-inl.h
View file @
46ef71e3
// Copyright(c) 2015-present Gabi Melman & spdlog contributors.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
#pragma once
#include "spdlog/details/os.h"
template
<
typename
TargetStream
,
typename
ConsoleMutex
>
...
...
include/spdlog/sinks/ansicolor_sink.h
View file @
46ef71e3
//
// Copyright(c) 2017 spdlog authors.
// Copyright(c) 2015-present Gabi Melman & spdlog contributors.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
//
#pragma once
...
...
include/spdlog/sinks/base_sink-inl.h
View file @
46ef71e3
// Copyright(c) 2015-present Gabi Melman & spdlog contributors.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
#pragma once
#include "spdlog/common.h"
#include "spdlog/details/pattern_formatter.h"
...
...
include/spdlog/sinks/base_sink.h
View file @
46ef71e3
//
// Copyright(c) 2015 Gabi Melman.
// Copyright(c) 2015-present Gabi Melman & spdlog contributors.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
//
#pragma once
//
...
...
include/spdlog/sinks/basic_file_sink.h
View file @
46ef71e3
//
// Copyright(c) 2015-2018 Gabi Melman.
// Copyright(c) 2015-present Gabi Melman & spdlog contributors.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
//
#pragma once
...
...
include/spdlog/sinks/daily_file_sink.h
View file @
46ef71e3
//
// Copyright(c) 2015 Gabi Melman.
// Copyright(c) 2015-present Gabi Melman & spdlog contributors.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
//
#pragma once
...
...
include/spdlog/sinks/dist_sink.h
View file @
46ef71e3
//
// Copyright (c) 2015 David Schury, Gabi Melman
// Copyright(c) 2015-present Gabi Melman & spdlog contributors.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
//
#pragma once
...
...
include/spdlog/sinks/msvc_sink.h
View file @
46ef71e3
//
// Copyright(c) 2016 Alexander Dalshov.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
//
#pragma once
...
...
include/spdlog/sinks/null_sink.h
View file @
46ef71e3
//
// Copyright(c) 2015 Gabi Melman.
// Copyright(c) 2015-present Gabi Melman & spdlog contributors.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
//
#pragma once
...
...
include/spdlog/sinks/ostream_sink.h
View file @
46ef71e3
//
// Copyright(c) 2015 Gabi Melman.
// Copyright(c) 2015-present Gabi Melman & spdlog contributors.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
//
#pragma once
...
...
include/spdlog/sinks/rotating_file_sink.h
View file @
46ef71e3
//
// Copyright(c) 2015 Gabi Melman.
// Copyright(c) 2015-present Gabi Melman & spdlog contributors.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
//
#pragma once
...
...
include/spdlog/sinks/sink-inl.h
View file @
46ef71e3
// Copyright(c) 2015-present Gabi Melman & spdlog contributors.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
#pragma once
#include "spdlog/common.h"
#include "spdlog/details/pattern_formatter.h"
...
...
include/spdlog/sinks/sink.h
View file @
46ef71e3
//
// Copyright(c) 2015 Gabi Melman.
// Copyright(c) 2015-present Gabi Melman & spdlog contributors.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
//
#pragma once
#include "spdlog/details/log_msg.h"
//#include "spdlog/details/pattern_formatter.h"
#include "spdlog/formatter.h"
namespace
spdlog
{
...
...
include/spdlog/sinks/stdout_color_sinks.h
View file @
46ef71e3
//
// Copyright(c) 2018 spdlog
// Copyright(c) 2015-present Gabi Melman & spdlog contributors.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
//
#pragma once
...
...
include/spdlog/sinks/stdout_sinks.h
View file @
46ef71e3
//
// Copyright(c) 2015 Gabi Melman.
// Copyright(c) 2015-present Gabi Melman & spdlog contributors.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
//
#pragma once
...
...
include/spdlog/sinks/syslog_sink.h
View file @
46ef71e3
//
// Copyright(c) 2015 Gabi Melman.
// Copyright(c) 2015-present Gabi Melman & spdlog contributors.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
//
#pragma once
...
...
include/spdlog/sinks/systemd_sink.h
View file @
46ef71e3
//
// Copyright(c) 2019 ZVYAGIN.Alexander@gmail.com
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
//
#pragma once
...
...
include/spdlog/sinks/wincolor_sink.h
View file @
46ef71e3
//
// Copyright(c) 2016 spdlog
// Copyright(c) 2015-present Gabi Melman & spdlog contributors.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
//
#pragma once
...
...
include/spdlog/spdlog.h
View file @
46ef71e3
//
// Copyright(c) 2015-2018 Gabi Melman.
// Copyright(c) 2015-present Gabi Melman & spdlog contributors.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
//
// spdlog main header file.
// see example.cpp for usage example
#ifndef SPDLOG_H
#define SPDLOG_H
#pragma once
#include "spdlog/common.h"
...
...
include/spdlog/tweakme.h
View file @
46ef71e3
//
// Copyright(c) 2015 Gabi Melman.
// Copyright(c) 2015-present Gabi Melman & spdlog contributors.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
//
#pragma once
...
...
include/spdlog/version.h
View file @
46ef71e3
//
// Copyright(c) 2015 Gabi Melman.
// Copyright(c) 2015-present Gabi Melman & spdlog contributors.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
//
#pragma once
...
...
src/format.cc
View file @
46ef71e3
// Formatting library for C++
//
// Copyright (c) 2012 - 2016, Victor Zverovich
// All rights reserved.
//
// For the license information refer to format.h.
// Slightly modified version of fmt lib to include bundled format-inl.h
#if !defined(SPDLOG_FMT_EXTERNAL)
#include "spdlog/fmt/bundled/format-inl.h"
#else
...
...
src/spdlog.cpp
View file @
46ef71e3
// Copyright(c) 2015-present Gabi Melman & spdlog contributors.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
#include "spdlog/spdlog.h"
#include "spdlog/details/null_mutex.h"
...
...
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