mirror of
https://github.com/gabime/spdlog.git
synced 2025-10-01 02:49:03 +08:00
wip static-lib
This commit is contained in:
@@ -16,7 +16,6 @@
|
||||
#include <string>
|
||||
#include <tuple>
|
||||
|
||||
|
||||
namespace spdlog {
|
||||
namespace sinks {
|
||||
|
||||
@@ -54,8 +53,6 @@ SPDLOG_INLINE filename_t rotating_file_sink<Mutex>::calc_filename(const filename
|
||||
return fmt::to_string(w);
|
||||
}
|
||||
|
||||
|
||||
|
||||
template<typename Mutex>
|
||||
SPDLOG_INLINE const filename_t &rotating_file_sink<Mutex>::filename() const
|
||||
{
|
||||
|
@@ -2,6 +2,7 @@
|
||||
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifndef SPDLOG_H
|
||||
#include "spdlog/spdlog.h"
|
||||
#endif
|
||||
@@ -27,12 +28,10 @@ public:
|
||||
static filename_t calc_filename(const filename_t &filename, std::size_t index);
|
||||
const filename_t &filename() const;
|
||||
|
||||
|
||||
protected:
|
||||
void sink_it_(const details::log_msg &msg) override;
|
||||
void flush_() override;
|
||||
|
||||
|
||||
private:
|
||||
// Rotate files:
|
||||
// log.txt -> log.1.txt
|
||||
@@ -76,7 +75,6 @@ inline std::shared_ptr<logger> rotating_logger_st(
|
||||
}
|
||||
} // namespace spdlog
|
||||
|
||||
|
||||
#ifdef SPDLOG_HEADER_ONLY
|
||||
#include "rotating_file_sink-inl.h"
|
||||
#endif
|
Reference in New Issue
Block a user