Init
This commit is contained in:
parent
6fd64c63f1
commit
307d71bc28
|
|
@ -1,5 +1,5 @@
|
||||||
//
|
//
|
||||||
// Created by xemon on 13.11.22.
|
// Created by CFIF on 13.11.22.
|
||||||
//
|
//
|
||||||
|
|
||||||
#ifndef UVEOS_ON_NATION_LOGGERINTERFACE_H
|
#ifndef UVEOS_ON_NATION_LOGGERINTERFACE_H
|
||||||
|
|
@ -10,6 +10,11 @@
|
||||||
#include "stdint.h"
|
#include "stdint.h"
|
||||||
#include "stdbool.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 {
|
typedef enum {
|
||||||
LOGLEVEL_FATAL,
|
LOGLEVEL_FATAL,
|
||||||
LOGLEVEL_ERROR,
|
LOGLEVEL_ERROR,
|
||||||
|
|
@ -29,11 +34,19 @@ typedef void (*LoggerGenericMethod)(
|
||||||
bool complete
|
bool complete
|
||||||
);
|
);
|
||||||
|
|
||||||
|
typedef uint8_t * (*getMemPrintfBufLogMethod)(
|
||||||
|
void *env,
|
||||||
|
const char *authorStatic,
|
||||||
|
const uint8_t authorLen,
|
||||||
|
uint16_t offset
|
||||||
|
);
|
||||||
|
|
||||||
extern tStringStatic LOGGER_LEVEL_NAMES[];
|
extern tStringStatic LOGGER_LEVEL_NAMES[];
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
void *env;
|
void *env;
|
||||||
LoggerGenericMethod logging;
|
LoggerGenericMethod logging;
|
||||||
|
getMemPrintfBufLogMethod getMemPrintfBufLog;
|
||||||
} tLoggerInterface;
|
} tLoggerInterface;
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue