engine: fix logging example not writing to file

The log file `jit.log` created in the bal_logging.h example was empty.

Signed-off-by: Ronald Caesar <github43132@proton.me>
This commit is contained in:
Ronald Caesar
2026-02-17 01:51:28 -04:00
parent a606d2c400
commit 31fc60ecca
2 changed files with 2 additions and 1 deletions

View File

@@ -49,6 +49,7 @@
//! };
//!
//! BAL_LOG_DEBUG(&logger, "Writing to custom file backend");
//! fclose(log_file);
//! ```
#ifndef BALLISTIC_LOGGING_H

View File

@@ -7,7 +7,7 @@ import tempfile
from typing import List, Optional
CC: str = "clang"
CFLAGS: List[str] = ["-Wall", "-Werror"]
CFLAGS: List[str] = ["-Wall", "-Werror", "-DBAL_MAX_LOG_LEVEL=4"]
if os.name == "nt":
CFLAGS.append("-D_CRT_SECURE_NO_WARNINGS")