Defines | Functions | Variables

debuglog.c File Reference

This handles debugging for pcscd. More...

#include "config.h"
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include <assert.h>
#include <sys/types.h>
#include <sys/time.h>
#include <time.h>
#include "pcsclite.h"
#include "misc.h"
#include "debuglog.h"
#include "sys_generic.h"
#include "strlcpycat.h"
Include dependency graph for debuglog.c:

Go to the source code of this file.

Defines

#define DEBUG_BUF_SIZE   2048
 Max string size when dumping a 256 bytes longs APDU Should be bigger than 256*3+30.
#define DEBUG_INFO_LENGTH   80

Functions

static void log_line (const int priority, const char *DebugBuffer)
void log_msg (const int priority, const char *fmt,...)
static void log_xxd_always (const int priority, const char *msg, const unsigned char *buffer, const int len)
void log_xxd (const int priority, const char *msg, const unsigned char *buffer, const int len)
void DebugLogSuppress (const int lSType)
void DebugLogSetLogType (const int dbgtype)
void DebugLogSetLevel (const int level)
INTERNAL int DebugLogSetCategory (const int dbginfo)
INTERNAL void DebugLogCategory (const int category, const unsigned char *buffer, const int len)

Variables

static char LogSuppress = DEBUGLOG_LOG_ENTRIES
static char LogMsgType = DEBUGLOG_NO_DEBUG
static char LogCategory = DEBUG_CATEGORY_NOTHING
static char LogLevel = PCSC_LOG_ERROR
 default level
static signed char LogDoColor = 0
 no color by default

Detailed Description

This handles debugging for pcscd.

Definition in file debuglog.c.