Skip to content

Commit 7f9f1eb

Browse files
committed
Consolidate logging under src/hydro/logging
1 parent f950dd8 commit 7f9f1eb

4 files changed

Lines changed: 6 additions & 18 deletions

File tree

CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -362,9 +362,9 @@ set(HYDROCHRONO_SOURCES
362362
src/hydro/force_components/hydrostatics_component.cpp
363363
src/hydro/force_components/radiation_component.cpp
364364
src/hydro/force_components/excitation_component.cpp
365-
# logging consolidated: coordinator + CLI (logging.cpp), backend (logger_backend.cpp)
366-
src/utils/logger_backend.cpp
367-
src/utils/logging.cpp
365+
# Logging module (consolidated under src/hydro/logging/)
366+
src/hydro/logging/logger_backend.cpp
367+
src/hydro/logging/logging.cpp
368368
)
369369

370370
# Create the library target and configure it
Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,7 @@
44
*/
55

66
#include "logger_backend.h"
7-
#if __has_include(<hydroc/logging.h>)
8-
# include <hydroc/logging.h>
9-
#else
10-
# include "../../include/hydroc/logging.h"
11-
#endif
7+
#include <hydroc/logging.h>
128
#include <iostream>
139
#include <sstream>
1410

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,7 @@
99

1010
#pragma once
1111

12-
#if __has_include(<hydroc/logging.h>)
13-
# include <hydroc/logging.h>
14-
#else
15-
# include "../../include/hydroc/logging.h"
16-
#endif
12+
#include <hydroc/logging.h>
1713
#include <array>
1814
#include <chrono>
1915
#include <fstream>
Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,7 @@
33
* @brief Implementation of the main logging interface
44
*/
55

6-
#if __has_include(<hydroc/logging.h>)
7-
# include <hydroc/logging.h>
8-
#else
9-
# include "../../include/hydroc/logging.h"
10-
#endif
6+
#include <hydroc/logging.h>
117
#include "logger_backend.h"
128
#include <cstdlib>
139
#include <algorithm>

0 commit comments

Comments
 (0)