This commit is contained in:
cfif 2026-03-30 14:25:13 +03:00
parent 6fd64c63f1
commit 307d71bc28
1 changed files with 14 additions and 1 deletions

View File

@ -1,5 +1,5 @@
//
// Created by xemon on 13.11.22.
// Created by CFIF on 13.11.22.
//
#ifndef UVEOS_ON_NATION_LOGGERINTERFACE_H
@ -10,6 +10,11 @@
#include "stdint.h"
#include "stdbool.h"
#define MAX_COUNT_BUF_LOG 10
#define MAX_LEN_PRINTF_BUF_LOG 256
#define MAX_LEN_LOGGER_BUF_LOG 256
#define MAX_LEN_BUF_NAME_LOG 16
typedef enum {
LOGLEVEL_FATAL,
LOGLEVEL_ERROR,
@ -29,11 +34,19 @@ typedef void (*LoggerGenericMethod)(
bool complete
);
typedef uint8_t * (*getMemPrintfBufLogMethod)(
void *env,
const char *authorStatic,
const uint8_t authorLen,
uint16_t offset
);
extern tStringStatic LOGGER_LEVEL_NAMES[];
typedef struct {
void *env;
LoggerGenericMethod logging;
getMemPrintfBufLogMethod getMemPrintfBufLog;
} tLoggerInterface;