Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines | Typedefs | Enumerations | Functions
prlog.h File Reference
#include "prtypes.h"

Go to the source code of 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 PR_BEGIN_EXTERN_C 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
}

Functions

 NSPR_API (PRLogModuleInfo *) PR_NewLogModule(const char *name)
 NSPR_API (PRBool) PR_SetLogFile(const char *name)
 NSPR_API (void) PR_SetLogBuffering(PRIntn buffer_size)
 Prototypes for machine dependent function implementations.

Class Documentation

struct PRLogModuleInfo

Definition at line 156 of file prlog.h.

Collaboration diagram for PRLogModuleInfo:
Class Members
PRLogModuleLevel level
const char * name
struct PRLogModuleInfo * next

Define Documentation

#define PR_ASSERT (   expr)    ((void) 0)

Definition at line 249 of file prlog.h.

#define PR_LOG (   module,
  level,
  args 
)

Definition at line 220 of file prlog.h.

#define PR_LOG_BEGIN (   module,
  level,
  args 
)

Definition at line 231 of file prlog.h.

#define PR_LOG_DEFINE (   _name)    NULL

Definition at line 233 of file prlog.h.

#define PR_LOG_END (   module,
  level,
  args 
)

Definition at line 232 of file prlog.h.

#define PR_LOG_TEST (   module,
  level 
)    0

Definition at line 219 of file prlog.h.

#define PR_NOT_REACHED (   reasonStr)

Definition at line 250 of file prlog.h.


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 

Definition at line 138 of file prlog.h.

                              {
    PR_LOG_NONE = 0,                /* nothing */
    PR_LOG_ALWAYS = 1,              /* always printed */
    PR_LOG_ERROR = 2,               /* error messages */
    PR_LOG_WARNING = 3,             /* warning messages */
    PR_LOG_DEBUG = 4,               /* debug messages */

    PR_LOG_NOTICE = PR_LOG_DEBUG,   /* notice messages */
    PR_LOG_WARN = PR_LOG_WARNING,   /* warning messages */
    PR_LOG_MIN = PR_LOG_DEBUG,      /* minimal debugging messages */
    PR_LOG_MAX = PR_LOG_DEBUG       /* maximal debugging messages */
} PRLogModuleLevel;

Function Documentation

NSPR_API ( PRLogModuleInfo ) const
NSPR_API ( PRBool  ) const
NSPR_API ( void  )

Prototypes for machine dependent function implementations.

(Too bad NSPR's MD system blows so much that we have to reiterate every stinking thing we implement here in our MD header file.)