[SNMP4J] Apache MINA based transport for SNMP4J and some question about logging

Frank Fock fock at agentpp.com
Tue May 27 22:40:50 CEST 2008


Hi Julien,

AFAIK, you cannot discover the registered loggers
from slf4j.

Regards,
Frank

Julien Vermillard wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hi Frank
> 
> I'll say when it's production ready, I'll probably test it next week
> with a bigger network than my first test.
> 
> About SLF4J, I know SNMP4J plan for no dependencies, but, simple
> curiosity, what are exactly the missing feature of slf4j ??
> 
> Julien
> 
> On Mon, 26 May 2008 23:33:46 +0200
> Frank Fock <fock at agentpp.com> wrote:
> 
>> Hi Julien,
>>
>> MINA seems to be easy to use, indeed.
>> I have planned a nio implementation of
>> the UDP transport mapping for SNMP4J 2.0
>> (Java SE 5 based).
>>
>> The slf4j is not an option, because
>> (a) SNMP4J should not have any dependency
>> to a third party lib.
>> (b) slf4j does not implement all necessary
>> functions needed by SNMP4J-Agent.
>>
>> I may put a link on the SNMP4J site to
>> your transport mapping implementation, when
>> you think it is ready for production usage.
>>
>> Best regards,
>> Frank
>>
>> Julien Vermillard wrote:
>>> Hi,
>>>
>>> I'm a commiter on Apache MINA and a great fan of SNMP4J (I use it
>>> since few year). So naturally I made a mina based transport for
>>> snmp4j.
>>>
>>> Anyway if you look at the code the use of MINA, managed to reduce
>>> the number of LoC, removing all the listener/worker thread code,
>>> because it's using MINA executor filter for processing incoming
>>> data. 
>>>
>>> The first quick implementations here :
>>> http://people.apache.org/~jvermillard/snmp4j/
>>> Basic testing showed it's working. I hope some of you will be
>>> interested ;)
>>>
>>> I know it's here because snmp4j is a bit old now, but I think the
>>> whole logging class could be removed to use a logging facade
>>> library like slf4j so the user can choose wich logging framework to
>>> use without need to know about org.snmp4j.log.* classes. Oh, and
>>> using sl4j remove the need to test isDebugEnabled() because it's
>>> doing the string concatenation only if needed. If you want I can
>>> provide some patch for that.
>>>
>>> Julien
>>>
>>> P.S. : cross-posting to mina-dev list, because I know there is some
>>> snmp4j users there.
> 
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (GNU/Linux)
> 
> iD8DBQFIO9VsHMBmbW1IlcURAiCRAJ4kpSee2IkwUiygbZh62lm4YFqfEwCeMuWc
> K/xPInF7q9CJxEZChpmiis8=
> =xqNh
> -----END PGP SIGNATURE-----
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> SNMP4J mailing list
> SNMP4J at agentpp.org
> http://lists.agentpp.org/mailman/listinfo/snmp4j

-- 
AGENT++
http://www.agentpp.com
http://www.mibexplorer.com
http://www.mibdesigner.com



More information about the SNMP4J mailing list