logging to files

D. R. Evans N7DR____arrl.net
Mon May 12 21:41:56 CEST 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 12 May 2003 at 20:37, Frank Fock wrote:

> 
> 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
> 

I had already tried that :-( (Except that I used "15" as the value; the 
documentation says that messages with a value <= n will be logged, so I 
chose the largest value of n).

Here is the sort of thing that I mean. On the console I see messages like 
this at start-up:

Initialized request_id to 1041.
getBootCounter: found (bootCounter): (395)
saveBootCounter: saved snmpEngineBoots counter
Initializing AuthPriv
Initialized salt to 0x9047.
Added Auth object with id (3).
Added Auth object with id (2).
Added Priv object with id (2).
Added default Auth and Priv protocols.
USM::get_user: user (initial) engine_id (  80 00 13 70 05 74 75 78 00 A1    
                  ...p.tux..
)
usmAddUser: Adding user (initial) engine_id (  80 00 13 70 05 74 75 78 00 
A1                      ...p.tux..
).
USM::get_user: user (initial) engine_id ()

None of these appear in the log file.

  Doc


-----BEGIN PGP SIGNATURE-----
Version: PGP 6.0.2 -- QDPGP 2.60 
Comment: Key obtainable from servers: ID 0x362912B8

iQA/AwUBPr/5BmnXrLw2KRK4EQIhtwCeI8vnWH9RiPgY4pqiqn+9mhn9SPEAoJHs
iIXeb4YGE9CmDa2d1d9NJNPE
=vQNj
-----END PGP SIGNATURE-----



More information about the AGENTPP mailing list