logging to files

Frank Fock Frank.Fock____t-online.de
Mon May 12 20:37:54 CEST 2003


Doc,

I do not have an explaination for your observation,
but you can set the log level, for example, by:

#ifndef _NO_LOGGING
	DefaultLog::log()->set_filter(ERROR_LOG, 2);
	DefaultLog::log()->set_filter(WARNING_LOG, 2);
	DefaultLog::log()->set_filter(EVENT_LOG, 5);
	DefaultLog::log()->set_filter(INFO_LOG, 5);
	DefaultLog::log()->set_filter(DEBUG_LOG, 5);
#endif

Best regards,
Frank

D. R. Evans wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> I am probably misunderstanding something here.
> 
> I have the following lines of code at the beginning of main:
> 
>  AgentLogImpl* log = new AgentLogImpl( "snmplog.log" );
>  DefaultLog::init( log );
> 
> This creates a logfile as I expected, but I see a LOT more information on 
> the console than is being written to the file. How do I get everything that 
> is appearing on the console to be logged in the logfile?
> 
>   Doc
> 
> 
> -----BEGIN PGP SIGNATURE-----
> Version: PGP 6.0.2 -- QDPGP 2.60 
> Comment: Key obtainable from servers: ID 0x362912B8
> 
> iQA/AwUBPr/PNGnXrLw2KRK4EQL4wQCg1OO0qQg2BV/jCSM5LbRePBECTk8An2KI
> jCBapX0N3T03m0M29F0x5lyX
> =+a0I
> -----END PGP SIGNATURE-----
> 






More information about the AGENTPP mailing list