Creates a new log module.
Syntax
#include <prlog.h> PRLogModuleInfo* PR_NewLogModule(const char *name);
Parameters
The function has this parameter:
- name
- The name to be assigned to the
PRLogModuleInfostructure.
Returns
A pointer to a PRLogModuleInfo structure.
Description
This function allocates and initializes a new PRLogModuleInfo structure with the specified name. If the environment variable NSPR_LOG_MODULES contains the specified name, then the associated level value from the variable is associated with the new PRLogModuleInfo structure.
