mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-04 22:20:28 -05:00
add logfile directive to config (behind NEW_LOGGING)
This commit is contained in:
parent
e809d3e90c
commit
d65bf04894
1 changed files with 13 additions and 0 deletions
|
|
@ -814,6 +814,19 @@ read_config( const char *fname )
|
|||
if ( level <= 0 ) level = lutil_mnem2level( cargv[2] );
|
||||
lutil_set_debug_level( cargv[1], level );
|
||||
/* specify an Object Identifier macro */
|
||||
#ifdef NEW_LOGGING
|
||||
} else if ( strcasecmp( cargv[0], "logfile" ) == 0 ) {
|
||||
FILE *logfile;
|
||||
if ( cargc < 2 ) {
|
||||
Debug( LDAP_DEBUG_ANY,
|
||||
"%s: line %d: Error in logfile directive, \"logfile filename\"\n",
|
||||
fname, lineno, 0 );
|
||||
return( 1 );
|
||||
}
|
||||
logfile = fopen( cargv[1], "w" );
|
||||
if ( logfile != NULL ) lutil_debug_file( logfile );
|
||||
|
||||
#endif
|
||||
} else if ( strcasecmp( cargv[0], "objectidentifier" ) == 0 ) {
|
||||
parse_oidm( fname, lineno, cargc, cargv );
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue