xlogging.h

Includes

#include <stdlib.h>
#include "azure_macro_utils/macro_utils.h"
#include "azure_c_shared_utility/agenttime.h"
#include "azure_c_shared_utility/optimize_size.h"
#include <stdio.h>

Detailed Description

Functions

Function Name Description
LogBinary
xlogging_set_log_function
xlogging_get_log_function

Macro definitions

FUNC_NAME

#define FUNC_NAME  __func__ 

TEMP_BUFFER_SIZE

#define TEMP_BUFFER_SIZE  1024 

MESSAGE_BUFFER_SIZE

#define MESSAGE_BUFFER_SIZE  260 

LOG_NONE

#define LOG_NONE  0x00 

LOG_LINE

#define LOG_LINE  0x01 

LOG

#define LOG \
        LOGGER_LOG, \
        xlogging_get_log_function, \
        FUNC_NAME 

LogInfo

#define LogInfo \
        LOG, \
        AZ_LOG_INFO, \
        LOG_LINE 

LogError

#define LogError \
        LOG, \
        AZ_LOG_ERROR, \
        LOG_LINE 

Enumeration types

LOG_CATEGORY

enum LOG_CATEGORY {
  AZ_LOG_ERROR,
  AZ_LOG_INFO,
  AZ_LOG_TRACE
}

Type definitions

LOGGER_LOG

typedef void(* LOGGER_LOG) (
  LOG_CATEGORY  log_category,
  const char *  file,
  const char *  func,
  int           line,
  unsigned int  options,
  const char *  format,
                ...
);

LOGGER_LOG_GETLASTERROR

typedef void(* LOGGER_LOG_GETLASTERROR) (
  const char *  file,
  const char *  func,
  int           line,
  const char *  format,
                ...
);