diff --git a/src/logger.cpp b/src/logger.cpp deleted file mode 100644 index 4bf022c6..00000000 --- a/src/logger.cpp +++ /dev/null @@ -1,51 +0,0 @@ -#include "stdafx.h" -#include - -#include "c11log/logger.h" - -void c11log::logger::set_name(const std::string& name) -{ - std::lock_guard lock(_mutex); - _logger_name = name; -} - -const std::string& c11log::logger::get_name() -{ - std::lock_guard lock(_mutex); - return _logger_name; -} - -void c11log::logger::add_sink(sink_ptr_t sink_ptr) -{ - std::lock_guard lock(_mutex); - _sinks.push_back(sink_ptr); -} - -void c11log::logger::remove_sink(sink_ptr_t sink_ptr) -{ - std::lock_guard lock(_mutex); - _sinks.erase(std::remove(_sinks.begin(), _sinks.end(), sink_ptr), _sinks.end()); -} - -void c11log::logger::set_formatter(std::unique_ptr formatter) -{ - std::lock_guard lock(_mutex); - _formatter = std::move(formatter); -} - -void c11log::logger::set_level(c11log::level::level_enum level) -{ - std::lock_guard lock(_mutex); - _level = level; -} - -bool c11log::logger::should_log(c11log::level::level_enum level) -{ - std::lock_guard lock(_mutex); - return level >= _level; -} - -c11log::logger& c11log::get_logger(const std::string& name) -{ - return *(c11log::details::factory::instance().get_logger(name)); -} \ No newline at end of file diff --git a/stdafx.cpp b/stdafx.cpp deleted file mode 100644 index 7cce5dbb..00000000 --- a/stdafx.cpp +++ /dev/null @@ -1,8 +0,0 @@ -// stdafx.cpp : source file that includes just the standard includes -// c11log.pch will be the pre-compiled header -// stdafx.obj will contain the pre-compiled type information - -#include "stdafx.h" - -// TODO: reference any additional headers you need in STDAFX.H -// and not in this file diff --git a/stdafx.h b/stdafx.h deleted file mode 100644 index ae597376..00000000 --- a/stdafx.h +++ /dev/null @@ -1,16 +0,0 @@ -// stdafx.h : include file for standard system include files, -// or project specific include files that are used frequently, but -// are changed infrequently -// - -#pragma once - -#include "targetver.h" - -#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers - -#include -#include -#include -#include -#include \ No newline at end of file diff --git a/targetver.h b/targetver.h deleted file mode 100644 index 90e767bf..00000000 --- a/targetver.h +++ /dev/null @@ -1,8 +0,0 @@ -#pragma once - -// Including SDKDDKVer.h defines the highest available Windows platform. - -// If you wish to build your application for a previous Windows platform, include WinSDKVer.h and -// set the _WIN32_WINNT macro to the platform you wish to support before including SDKDDKVer.h. - -#include