File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change @@ -90,6 +90,39 @@ output("Building package assets" NOTICE LABEL "✓" LABEL_FORMAT "[ %label% ] ")
9090
9191See [ output module] ( ./modules/output/index.md ) for additional information.
9292
93+ ### Logging
94+
95+ [ PSR-3] ( https://www.php-fig.org/psr/psr-3/ ) inspired logging utilities.
96+
97+ ``` cmake
98+ warning("Build incomplete"
99+ CONTEXT
100+ PROJECT_NAME
101+ CMAKE_BINARY_DIR
102+ CMAKE_PROJECT_NAME
103+ )
104+ ```
105+
106+ ``` txt
107+ CMake Warning at cmake/rsp/output.cmake:144 (message):
108+ warning: Build incomplete
109+
110+ Context:
111+ [
112+ PROJECT_NAME = my-project
113+ CMAKE_BINARY_DIR = /home/user/code/my-project/build
114+ CMAKE_PROJECT_NAME = my-project
115+ ]
116+ Timestamp: 2025-02-05 14:49:16.087085
117+ Call Stack (most recent call first):
118+ cmake/rsp/logging.cmake:335 (output)
119+ cmake/rsp/logging.cmake:381 (log)
120+ cmake/rsp/logging.cmake:158 (forward_to_log)
121+ CMakeLists.txt:103 (warning)
122+ ```
123+
124+ See [ logging module] ( ./modules/logging/index.md ) for additional information.
125+
93126### Cache
94127
95128(_ available since ` v0.1 ` _ )
You can’t perform that action at this time.
0 commit comments