LogInit
- Function
- August 22, 2025
Table of Contents
LogInit
LogInit
Description
Initialize logging subsystem
Note
Is lazily called if not called by user at start of program.
Parameters
Name | Direction | Description |
---|---|---|
redirect | in | When true, redirect output to temporary file |
Success
Logging system ready for use
Failure
Logging remains uninitialized (will lazy-init later)
Usage example (Cross-references)
- In
Log.c:18
:
static SysMutex *log_mutex = NULL;
void LogInit(bool redirect) {
if (redirect) {
// Get the current time
- In
Log.c:125
:
// Initialize log if not already
if (!stderror) {
LogInit(false);
}
- In
MisraEnum.c:36
:
int main(int argc, char** argv) {
LogInit(false);
if (argc < 2 || argc > 3) {
- In
MisraDoc.c:103
:
}
LogInit(false);
const char* config_path = argv[1];