Classes | Defines | Typedefs | Enumerations | Functions

prlog.h File Reference

#include "prtypes.h"
Include dependency graph for prlog.h:
This graph shows which files directly or indirectly include this file:

Classes

struct  PRLogModuleInfo

Defines

#define PR_LOG_TEST(module, level)   0
#define PR_LOG(module, level, args)
#define PR_LOG_BEGIN(module, level, args)
#define PR_LOG_END(module, level, args)
#define PR_LOG_DEFINE(_name)   NULL
#define PR_ASSERT(expr)   ((void) 0)
#define PR_NOT_REACHED(reasonStr)

Typedefs

typedef enum PRLogModuleLevel PRLogModuleLevel
typedef struct PRLogModuleInfo PRLogModuleInfo

Enumerations

enum  PRLogModuleLevel {
  PR_LOG_NONE = 0, PR_LOG_ALWAYS = 1, PR_LOG_ERROR = 2, PR_LOG_WARNING = 3,
  PR_LOG_DEBUG = 4, PR_LOG_NOTICE = PR_LOG_DEBUG, PR_LOG_WARN = PR_LOG_WARNING, PR_LOG_MIN = PR_LOG_DEBUG,
  PR_LOG_MAX = PR_LOG_DEBUG, PR_LOG_NONE = 0, PR_LOG_ALWAYS = 1, PR_LOG_ERROR = 2,
  PR_LOG_WARNING = 3, PR_LOG_DEBUG = 4, PR_LOG_NOTICE = PR_LOG_DEBUG, PR_LOG_WARN = PR_LOG_WARNING,
  PR_LOG_MIN = PR_LOG_DEBUG, PR_LOG_MAX = PR_LOG_DEBUG
}

Functions

PRLogModuleInfoPR_NewLogModule (const char *name)
PRBool PR_SetLogFile (const char *name)
void PR_SetLogBuffering (PRIntn buffer_size)
void PR_LogPrint (const char *fmt,...)
void PR_LogFlush (void)
void PR_Assert (const char *s, const char *file, PRIntn ln)

Define Documentation

#define PR_ASSERT (   expr  )     ((void) 0)
#define PR_LOG (   module,
  level,
  args 
)
#define PR_LOG_BEGIN (   module,
  level,
  args 
)
#define PR_LOG_DEFINE (   _name  )     NULL
#define PR_LOG_END (   module,
  level,
  args 
)
#define PR_LOG_TEST (   module,
  level 
)    0
#define PR_NOT_REACHED (   reasonStr  ) 

Typedef Documentation


Enumeration Type Documentation

Enumerator:
PR_LOG_NONE 
PR_LOG_ALWAYS 
PR_LOG_ERROR 
PR_LOG_WARNING 
PR_LOG_DEBUG 
PR_LOG_NOTICE 
PR_LOG_WARN 
PR_LOG_MIN 
PR_LOG_MAX 
PR_LOG_NONE 
PR_LOG_ALWAYS 
PR_LOG_ERROR 
PR_LOG_WARNING 
PR_LOG_DEBUG 
PR_LOG_NOTICE 
PR_LOG_WARN 
PR_LOG_MIN 
PR_LOG_MAX 

Function Documentation

void PR_Assert ( const char *  s,
const char *  file,
PRIntn  ln 
)
void PR_LogFlush ( void   ) 
void PR_LogPrint ( const char *  fmt,
  ... 
)
PRLogModuleInfo* PR_NewLogModule ( const char *  name  ) 
void PR_SetLogBuffering ( PRIntn  buffer_size  ) 
PRBool PR_SetLogFile ( const char *  name  )