PR_SetLogFile

Sets the name of the log file.

Syntax

#include <prlog.h>

PRBool PR_SetLogFile(const char *name);

Parameters

The function has this parameter:

name
The name of the log file.

Returns

PR_TRUE when successful. Otherwise, PR_FALSE.

Description

Creates a log file with the specified file name. Subsequent log messages are written to this file.

Ordinarily, a user application need not use this function, as NSPR initializes logging at NSPR startup. The application can use the model provided in Use Example to effect application logging.