diff options
| author | Soikk | 2025-05-24 01:15:43 +0200 |
|---|---|---|
| committer | Soikk | 2025-05-24 01:15:43 +0200 |
| commit | 16191cdeeb03f62bdc1bd4d38b87b386e6beb48b (patch) | |
| tree | 26cfef48537ae75365f1ea4872407c13c51d4c9f /log/log.c | |
| parent | 1dafd7a2cd7f761a1f44af472ce38ff7a8bce1e5 (diff) | |
| download | soikk-libs-16191cdeeb03f62bdc1bd4d38b87b386e6beb48b.tar.xz soikk-libs-16191cdeeb03f62bdc1bd4d38b87b386e6beb48b.tar.zst | |
Added designated initializers
Diffstat (limited to 'log/log.c')
| -rwxr-xr-x | log/log.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -11,25 +11,25 @@ static struct { char *color; #endif } log_levels[LOG_LEVEL_COUNT] = { - { + [LOG_DEBUG] = { .name = "DEBUG", .set = 1, .fps = {0}, .nfps = 0, .stder = 1, #ifdef COLOR .color = "\e[38;2;255;255;0m" #endif }, - { + [LOG_INFO] = { .name = "INFO", .set = 1, .fps = {0}, .nfps = 0, .stder = 1, #ifdef COLOR .color = "\e[38;2;0;224;255m" #endif }, - { + [LOG_WARN] = { .name = "WARN", .set = 1, .fps = {0}, .nfps = 0, .stder = 1, #ifdef COLOR .color = "\e[38;2;255;165;0m" #endif }, - { + [LOG_ERROR] = { .name = "ERROR", .set = 1, .fps = {0}, .nfps = 0, .stder = 1, #ifdef COLOR .color = "\e[38;2;255;0;0m" |
