Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# All text files use LF, regardless of the platform a contributor uses.
# ccbench targets x86_64 Linux only, so there is no reason to keep CRLF.
* text=auto eol=lf

.gitignore export-ignore
.gitattributes export-ignore
oze* export-ignore
54 changes: 27 additions & 27 deletions include/logger.h
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
//
// Created by thawk on 2020/11/10.
//
#pragma once
#ifdef NDEBUG
#define SPDLOG_ACTIVE_LEVEL SPDLOG_LEVEL_INFO
#else
#define SPDLOG_ACTIVE_LEVEL SPDLOG_LEVEL_DEBUG // NOLINT
#endif
#include "spdlog/spdlog.h"
namespace ccbench {
static inline void setup_spdlog() {
#ifdef NDEBUG
spdlog::set_level(spdlog::level::info);
#else
spdlog::set_level(spdlog::level::debug);
#endif
}
} // namespace ccbench
//
// Created by thawk on 2020/11/10.
//

#pragma once

#ifdef NDEBUG
#define SPDLOG_ACTIVE_LEVEL SPDLOG_LEVEL_INFO
#else
#define SPDLOG_ACTIVE_LEVEL SPDLOG_LEVEL_DEBUG // NOLINT
#endif

#include "spdlog/spdlog.h"

namespace ccbench {

static inline void setup_spdlog() {

#ifdef NDEBUG
spdlog::set_level(spdlog::level::info);
#else
spdlog::set_level(spdlog::level::debug);
#endif

}

} // namespace ccbench
Loading