Skip to content
Draft
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
20 changes: 20 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,26 @@ These headers prepare internal dependencies in the intended order.
- If a header contains mixed declarations, helpers, macros, or multiple types,
use a snake_case filename.

## Header Guards

For every project-owned C/C++ header, use `#pragma once` together with a
non-reserved include guard. Guard names must be derived from the project prefix
and header path, and must clearly indicate that the macro is a header guard:

```cpp
LOGIT_CPP_HEADER_<PATH>_<FILE>_<EXT>_INCLUDED
```

Do not use identifiers reserved for the compiler, standard library, platform SDK,
or other implementation internals. In particular, do not use include guard names
that start with an underscore, start with an underscore followed by an uppercase
letter, or contain a double underscore anywhere.

Implementation fragments such as `.ipp`, `.inl`, or `.tpp` files may remain
unguarded if they are only included from already guarded headers and are not
intended for direct inclusion. If they are intended to be included directly, they
must follow the same non-reserved guard naming rule.

## Repository Setup

Before configuring or building, initialize submodules:
Expand Down
6 changes: 5 additions & 1 deletion guides/cpp_style.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@
- Keep opening braces on the same line for classes, methods, and namespaces.
- Do not use `using namespace`; always qualify names such as `std::`.
- Keep project headers before system headers in include lists.
- Header files must start with `#pragma once`; if an include guard is also used, prefer a `LOGIT_*_HPP_INCLUDED` style guard that matches the file.
- Header files must start with `#pragma once` and a non-reserved include guard
derived from the project prefix and header path:
`LOGIT_CPP_HEADER_<PATH>_<FILE>_<EXT>_INCLUDED`.
- Do not use guard names that start with an underscore, start with an
underscore followed by an uppercase letter, or contain a double underscore.
- Keep source and documentation files in UTF-8.
- Write non-ASCII C++ string literals as `u8"..."`.
- Preserve existing public API names unless the task explicitly requires renaming them.
Expand Down
9 changes: 5 additions & 4 deletions guides/orientation.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,8 @@ Important project-specific points:
`TextColor` and `RotationNaming` use `CamelCase`, and `CompressType` uses
names such as `GZIP` and `EXTERNAL_CMD`. Preserve existing public names unless
a task explicitly requires a breaking rename.
- Headers begin with `#pragma once` and an include guard.
- Headers begin with `#pragma once` and a non-reserved
`LOGIT_CPP_HEADER_*_INCLUDED` include guard.
- Doxygen comments are English and usually use `/// \brief`.
- Project headers appear before system headers when adding include lists.
- Keep documentation and sources in UTF-8. Use `u8"..."` for non-ASCII C++
Expand Down Expand Up @@ -202,8 +203,8 @@ Compact style example:

```cpp
#pragma once
#ifndef _LOGIT_LOG_ARCHIVE_INFO_HPP_INCLUDED
#define _LOGIT_LOG_ARCHIVE_INFO_HPP_INCLUDED
#ifndef LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_UTILS_LOG_ARCHIVE_INFO_HPP_INCLUDED
#define LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_UTILS_LOG_ARCHIVE_INFO_HPP_INCLUDED

#include <cstdint>
#include <string>
Expand All @@ -219,7 +220,7 @@ namespace logit {

} // namespace logit

#endif // _LOGIT_LOG_ARCHIVE_INFO_HPP_INCLUDED
#endif // LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_UTILS_LOG_ARCHIVE_INFO_HPP_INCLUDED
```

### Add a Logger Backend
Expand Down
8 changes: 4 additions & 4 deletions include/logit_cpp/logit.hpp
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#pragma once
#ifndef LOGIT_CPP_LOGIT_HPP
#define LOGIT_CPP_LOGIT_HPP
#ifndef LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_HPP_INCLUDED
#define LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_HPP_INCLUDED

/// \file logit.hpp
/// \brief Unified umbrella header for the LogIt++ library.
///
/// Including this header provides a fully self-contained entry point that
/// aggregates configuration, utilities, formatters, loggers and the logging
/// façade. No additional includes are required to start using the library.
/// faГ§ade. No additional includes are required to start using the library.

#include "logit/config.hpp"
#include "logit/enums.hpp"
Expand All @@ -21,4 +21,4 @@
/// \brief The primary namespace for the LogIt++ library.
namespace logit {};

#endif // LOGIT_CPP_LOGIT_HPP
#endif // LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_HPP_INCLUDED
6 changes: 3 additions & 3 deletions include/logit_cpp/logit/Logger.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once
#ifndef _LOGIT_LOGGER_HPP_INCLUDED
#define _LOGIT_LOGGER_HPP_INCLUDED
#ifndef LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_LOGGER_HPP_INCLUDED
#define LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_LOGGER_HPP_INCLUDED

/// \file Logger.hpp
/// \brief Defines the Logger class for managing multiple loggers and formatters.
Expand Down Expand Up @@ -618,4 +618,4 @@ namespace logit {

}; // namespace logit

#endif // _LOGIT_LOGGER_HPP_INCLUDED
#endif // LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_LOGGER_HPP_INCLUDED
6 changes: 3 additions & 3 deletions include/logit_cpp/logit/config.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once
#ifndef _LOGIT_CONFIG_HPP_INCLUDED
#define _LOGIT_CONFIG_HPP_INCLUDED
#ifndef LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_CONFIG_HPP_INCLUDED
#define LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_CONFIG_HPP_INCLUDED

/// \file config.hpp
/// \brief Configuration macros for the LogIt logging system.
Expand Down Expand Up @@ -229,4 +229,4 @@

/// \}

#endif // _LOGIT_CONFIG_HPP_INCLUDED
#endif // LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_CONFIG_HPP_INCLUDED
6 changes: 3 additions & 3 deletions include/logit_cpp/logit/detail/CompressionUtils.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once
#ifndef _LOGIT_DETAIL_COMPRESSION_UTILS_HPP_INCLUDED
#define _LOGIT_DETAIL_COMPRESSION_UTILS_HPP_INCLUDED
#ifndef LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_DETAIL_COMPRESSIONUTILS_HPP_INCLUDED
#define LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_DETAIL_COMPRESSIONUTILS_HPP_INCLUDED

/// \file CompressionUtils.hpp
/// \brief Shared gzip/zstd compression helpers used by OTLP and MDBX backends.
Expand Down Expand Up @@ -186,4 +186,4 @@ inline bool decompress_string_zstd(const std::string& input, std::string& output
} // namespace detail
} // namespace logit

#endif // _LOGIT_DETAIL_COMPRESSION_UTILS_HPP_INCLUDED
#endif // LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_DETAIL_COMPRESSIONUTILS_HPP_INCLUDED
7 changes: 3 additions & 4 deletions include/logit_cpp/logit/detail/CompressionWorker.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once
#ifndef _LOGIT_COMPRESSION_WORKER_HPP_INCLUDED
#define _LOGIT_COMPRESSION_WORKER_HPP_INCLUDED
#ifndef LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_DETAIL_COMPRESSIONWORKER_HPP_INCLUDED
#define LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_DETAIL_COMPRESSIONWORKER_HPP_INCLUDED

/// \file CompressionWorker.hpp
/// \brief Background worker that compresses rotated log files.
Expand Down Expand Up @@ -253,5 +253,4 @@ namespace logit { namespace detail {

}} // namespace logit::detail

#endif // _LOGIT_COMPRESSION_WORKER_HPP_INCLUDED

#endif // LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_DETAIL_COMPRESSIONWORKER_HPP_INCLUDED
6 changes: 3 additions & 3 deletions include/logit_cpp/logit/detail/LogContext.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once
#ifndef _LOGIT_LOG_CONTEXT_HPP_INCLUDED
#define _LOGIT_LOG_CONTEXT_HPP_INCLUDED
#ifndef LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_DETAIL_LOGCONTEXT_HPP_INCLUDED
#define LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_DETAIL_LOGCONTEXT_HPP_INCLUDED

/// \file LogContext.hpp
/// \brief Thread-local Mapped Diagnostic Context (MDC) and Nested Diagnostic Context (NDC).
Expand Down Expand Up @@ -200,4 +200,4 @@ namespace logit {

} // namespace logit

#endif // _LOGIT_LOG_CONTEXT_HPP_INCLUDED
#endif // LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_DETAIL_LOGCONTEXT_HPP_INCLUDED
6 changes: 3 additions & 3 deletions include/logit_cpp/logit/detail/LogStream.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once
#ifndef _LOGIT_DETAIL_LOG_STREAM_HPP_INCLUDED
#define _LOGIT_DETAIL_LOG_STREAM_HPP_INCLUDED
#ifndef LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_DETAIL_LOGSTREAM_HPP_INCLUDED
#define LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_DETAIL_LOGSTREAM_HPP_INCLUDED

/// \file LogStream.hpp
/// \brief Defines the LogStream class for stream-like logging functionality.
Expand Down Expand Up @@ -76,4 +76,4 @@ namespace logit {

} // namespace logit

#endif // _LOGIT_DETAIL_LOG_STREAM_HPP_INCLUDED
#endif // LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_DETAIL_LOGSTREAM_HPP_INCLUDED
4 changes: 4 additions & 0 deletions include/logit_cpp/logit/detail/MdbxByteIO.hpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#pragma once
#ifndef LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_DETAIL_MDBXBYTEIO_HPP_INCLUDED
#define LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_DETAIL_MDBXBYTEIO_HPP_INCLUDED

/// \file MdbxByteIO.hpp
/// \brief Byte serialization helpers for MdbxLogger.
Expand Down Expand Up @@ -121,3 +123,5 @@ class MdbxByteReader {

} // namespace detail
} // namespace logit

#endif // LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_DETAIL_MDBXBYTEIO_HPP_INCLUDED
4 changes: 4 additions & 0 deletions include/logit_cpp/logit/detail/MdbxKeyUtils.hpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#pragma once
#ifndef LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_DETAIL_MDBXKEYUTILS_HPP_INCLUDED
#define LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_DETAIL_MDBXKEYUTILS_HPP_INCLUDED

/// \file MdbxKeyUtils.hpp
/// \brief Key encoding helpers for MdbxLogger record ordering.
Expand Down Expand Up @@ -32,3 +34,5 @@ inline std::string make_mdbx_record_key(int64_t timestamp_ms, uint32_t sequence)

} // namespace detail
} // namespace logit

#endif // LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_DETAIL_MDBXKEYUTILS_HPP_INCLUDED
4 changes: 4 additions & 0 deletions include/logit_cpp/logit/detail/MdbxProcessId.hpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#pragma once
#ifndef LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_DETAIL_MDBXPROCESSID_HPP_INCLUDED
#define LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_DETAIL_MDBXPROCESSID_HPP_INCLUDED

/// \file MdbxProcessId.hpp
/// \brief Cross-platform current process id helper for MdbxLogger.
Expand All @@ -24,3 +26,5 @@ inline uint64_t current_process_id() {

} // namespace detail
} // namespace logit

#endif // LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_DETAIL_MDBXPROCESSID_HPP_INCLUDED
8 changes: 4 additions & 4 deletions include/logit_cpp/logit/detail/MpscRingAny.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// detail/MpscRingAny.hpp
#ifndef _LOGIT_DETAIL_MPSC_RING_ANY_HPP_INCLUDED
#define _LOGIT_DETAIL_MPSC_RING_ANY_HPP_INCLUDED
#pragma once
#ifndef LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_DETAIL_MPSCRINGANY_HPP_INCLUDED
#define LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_DETAIL_MPSCRINGANY_HPP_INCLUDED

#include <atomic>
#include <cstddef>
Expand Down Expand Up @@ -175,4 +175,4 @@ namespace logit { namespace detail {

}} // namespace logit::detail

#endif // _LOGIT_DETAIL_MPSC_RING_ANY_HPP_INCLUDED
#endif // LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_DETAIL_MPSCRINGANY_HPP_INCLUDED
6 changes: 3 additions & 3 deletions include/logit_cpp/logit/detail/QueuePolicy.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once
#ifndef _LOGIT_DETAIL_QUEUE_POLICY_HPP_INCLUDED
#define _LOGIT_DETAIL_QUEUE_POLICY_HPP_INCLUDED
#ifndef LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_DETAIL_QUEUEPOLICY_HPP_INCLUDED
#define LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_DETAIL_QUEUEPOLICY_HPP_INCLUDED

namespace logit { namespace detail {

Expand All @@ -13,4 +13,4 @@ enum class QueuePolicy {

}} // namespace logit::detail

#endif // _LOGIT_DETAIL_QUEUE_POLICY_HPP_INCLUDED
#endif // LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_DETAIL_QUEUEPOLICY_HPP_INCLUDED
6 changes: 3 additions & 3 deletions include/logit_cpp/logit/detail/ScopeTimer.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once
#ifndef _LOGIT_DETAIL_SCOPE_TIMER_HPP_INCLUDED
#define _LOGIT_DETAIL_SCOPE_TIMER_HPP_INCLUDED
#ifndef LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_DETAIL_SCOPETIMER_HPP_INCLUDED
#define LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_DETAIL_SCOPETIMER_HPP_INCLUDED

/// \file ScopeTimer.hpp
/// \brief RAII timer that logs the duration of a scope.
Expand Down Expand Up @@ -62,4 +62,4 @@ namespace logit { namespace detail {

}} // namespace logit::detail

#endif // _LOGIT_DETAIL_SCOPE_TIMER_HPP_INCLUDED
#endif // LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_DETAIL_SCOPETIMER_HPP_INCLUDED
6 changes: 3 additions & 3 deletions include/logit_cpp/logit/detail/SingleThreadExecutor.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once
#ifndef _LOGIT_DETAIL_SINGLE_THREAD_EXECUTOR_HPP_INCLUDED
#define _LOGIT_DETAIL_SINGLE_THREAD_EXECUTOR_HPP_INCLUDED
#ifndef LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_DETAIL_SINGLETHREADEXECUTOR_HPP_INCLUDED
#define LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_DETAIL_SINGLETHREADEXECUTOR_HPP_INCLUDED

/// \file SingleThreadExecutor.hpp
/// \brief Per-instance single-thread executor for isolated async logging.
Expand Down Expand Up @@ -385,4 +385,4 @@ class SingleThreadExecutor {
} // namespace detail
} // namespace logit

#endif // _LOGIT_DETAIL_SINGLE_THREAD_EXECUTOR_HPP_INCLUDED
#endif // LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_DETAIL_SINGLETHREADEXECUTOR_HPP_INCLUDED
6 changes: 3 additions & 3 deletions include/logit_cpp/logit/detail/TaskExecutor.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once
#ifndef _LOGIT_DETAIL_TASK_EXECUTOR_HPP_INCLUDED
#define _LOGIT_DETAIL_TASK_EXECUTOR_HPP_INCLUDED
#ifndef LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_DETAIL_TASKEXECUTOR_HPP_INCLUDED
#define LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_DETAIL_TASKEXECUTOR_HPP_INCLUDED

/// \file TaskExecutor.hpp
/// \brief Task executor used by asynchronous loggers.
Expand Down Expand Up @@ -576,4 +576,4 @@ namespace logit { namespace detail {

}} // namespace logit::detail

#endif // _LOGIT_DETAIL_TASK_EXECUTOR_HPP_INCLUDED
#endif // LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_DETAIL_TASKEXECUTOR_HPP_INCLUDED
6 changes: 3 additions & 3 deletions include/logit_cpp/logit/detail/system_error_macros.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once
#ifndef LOGIT_DETAIL_SYSTEM_ERROR_MACROS_HPP_INCLUDED
#define LOGIT_DETAIL_SYSTEM_ERROR_MACROS_HPP_INCLUDED
#ifndef LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_DETAIL_SYSTEM_ERROR_MACROS_HPP_INCLUDED
#define LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_DETAIL_SYSTEM_ERROR_MACROS_HPP_INCLUDED

#include <errno.h>
#include <cstring>
Expand Down Expand Up @@ -79,4 +79,4 @@ inline std::string _logit_format_winerr(DWORD code) {

#endif // defined(_WIN32)

#endif // LOGIT_DETAIL_SYSTEM_ERROR_MACROS_HPP_INCLUDED
#endif // LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_DETAIL_SYSTEM_ERROR_MACROS_HPP_INCLUDED
6 changes: 3 additions & 3 deletions include/logit_cpp/logit/enums.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once
#ifndef _LOGIT_ENUMS_HPP_INCLUDED
#define _LOGIT_ENUMS_HPP_INCLUDED
#ifndef LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_ENUMS_HPP_INCLUDED
#define LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_ENUMS_HPP_INCLUDED

/// \file enums.hpp
/// \brief Enumerations and utility functions for logging levels and text colors.
Expand Down Expand Up @@ -169,4 +169,4 @@ namespace logit {

}; // namespace logit

#endif // _LOGIT_ENUMS_HPP_INCLUDED
#endif // LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_ENUMS_HPP_INCLUDED
6 changes: 3 additions & 3 deletions include/logit_cpp/logit/formatter.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once
#ifndef _LOGIT_FORMATTER_HPP_INCLUDED
#define _LOGIT_FORMATTER_HPP_INCLUDED
#ifndef LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_FORMATTER_HPP_INCLUDED
#define LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_FORMATTER_HPP_INCLUDED

/// \file formatter.hpp
/// \brief Aggregates the formatter subsystem for convenient inclusion.
Expand All @@ -13,4 +13,4 @@
#include "formatter/SimpleLogFormatter.hpp"
#include "formatter/compiler/PatternCompiler.hpp"

#endif // _LOGIT_FORMATTER_HPP_INCLUDED
#endif // LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_FORMATTER_HPP_INCLUDED
6 changes: 3 additions & 3 deletions include/logit_cpp/logit/formatter/ILogFormatter.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once
#ifndef _LOGIT_ILOG_FORMATTER_HPP_INCLUDED
#define _LOGIT_ILOG_FORMATTER_HPP_INCLUDED
#ifndef LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_FORMATTER_ILOGFORMATTER_HPP_INCLUDED
#define LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_FORMATTER_ILOGFORMATTER_HPP_INCLUDED

/// \file ILogFormatter.hpp
/// \brief Defines the interface for log formatters used in the logging system.
Expand Down Expand Up @@ -46,4 +46,4 @@ namespace logit {

}; // namespace logit

#endif // _LOGIT_ILOG_FORMATTER_HPP_INCLUDED
#endif // LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_FORMATTER_ILOGFORMATTER_HPP_INCLUDED
6 changes: 3 additions & 3 deletions include/logit_cpp/logit/formatter/SimpleLogFormatter.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once
#ifndef _LOGIT_SIMPLE_LOG_FORMATTER_HPP_INCLUDED
#define _LOGIT_SIMPLE_LOG_FORMATTER_HPP_INCLUDED
#ifndef LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_FORMATTER_SIMPLELOGFORMATTER_HPP_INCLUDED
#define LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_FORMATTER_SIMPLELOGFORMATTER_HPP_INCLUDED

/// \file SimpleLogFormatter.hpp
/// \brief Defines the SimpleLogFormatter class for formatting log messages according to a specified pattern or JSON format.
Expand Down Expand Up @@ -180,4 +180,4 @@ namespace logit {

}; // namespace logit

#endif // _LOGIT_SIMPLE_LOG_FORMATTER_HPP_INCLUDED
#endif // LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_FORMATTER_SIMPLELOGFORMATTER_HPP_INCLUDED
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once
#ifndef _LOGIT_PATTERN_COMPILER_HPP_INCLUDED
#define _LOGIT_PATTERN_COMPILER_HPP_INCLUDED
#ifndef LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_FORMATTER_COMPILER_PATTERNCOMPILER_HPP_INCLUDED
#define LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_FORMATTER_COMPILER_PATTERNCOMPILER_HPP_INCLUDED

/// \file PatternCompiler.hpp
/// \brief Header file for the pattern compiler used in log formatting.
Expand Down Expand Up @@ -760,4 +760,4 @@ namespace logit {

}; // namespace logit

#endif // _LOGIT_PATTERN_COMPILER_HPP_INCLUDED
#endif // LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_FORMATTER_COMPILER_PATTERNCOMPILER_HPP_INCLUDED
Loading
Loading