Skip to content

Commit 49f1278

Browse files
IronsDuclaude
andcommitted
chore: remove unused logger.h header
logger.h was an empty forwarding header — logging configuration is now handled via ProfilerManager instance methods (setLogSink/setLogLevel). No code referenced this header. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent c73b120 commit 49f1278

5 files changed

Lines changed: 2 additions & 25 deletions

File tree

CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,6 @@ set(PROFILER_CORE_SOURCES
113113
set(PROFILER_CORE_HEADERS
114114
include/profiler_manager.h
115115
include/profiler/log_sink.h
116-
include/profiler/logger.h
117116
include/profiler/http_handlers.h
118117
)
119118

@@ -286,7 +285,6 @@ if(REMOTE_PROFILER_INSTALL)
286285
# Install profiler subdirectory headers
287286
install(FILES
288287
include/profiler/log_sink.h
289-
include/profiler/logger.h
290288
include/profiler/http_handlers.h
291289
DESTINATION include/cpp-remote-profiler/profiler
292290
)

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -326,8 +326,7 @@ cpp-remote-profiler/
326326
│ └── profiler/
327327
│ ├── http_handlers.h # 框架无关的 HTTP 处理器
328328
│ ├── drogon_adapter.h # Drogon 适配层(可选)
329-
│ ├── log_sink.h # 日志 Sink 接口
330-
│ └── logger.h # 日志配置接口
329+
│ └── log_sink.h # 日志 Sink 接口
331330
├── src/
332331
│ ├── profiler_manager.cpp # Profiler 管理器实现
333332
│ ├── symbolize.cpp # 符号化引擎

docs/user_guide/06_using_find_package.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ sudo make install DESTDIR=/opt/cpp-remote-profiler
5151
│ ├── drogon_adapter.h
5252
│ ├── http_handlers.h
5353
│ ├── log_sink.h
54-
│ └── logger.h
5554
└── version.h
5655
```
5756

include/profiler/logger.h

Lines changed: 0 additions & 18 deletions
This file was deleted.

plan.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,7 @@ profiler.setLogLevel(profiler::LogLevel::Debug);
9393
#### 文件结构
9494
```
9595
include/profiler/
96-
├── log_sink.h # LogSink 接口 + LogLevel 枚举
97-
└── logger.h # 仅 log 宏声明(日志配置移到 ProfilerManager 实例方法)
96+
└── log_sink.h # LogSink 接口 + LogLevel 枚举
9897

9998
src/internal/
10099
├── log_manager.h # 内部状态管理(非单例,由 ProfilerManager 持有)

0 commit comments

Comments
 (0)