You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@avro.apache.org by Yuduo Zhou <yu...@gmail.com> on 2010/11/12 19:15:09 UTC
How to remove the debug info?
Hi all,
This is a rookie question, but I didn't find a solution.
How can I get rid of the debug info printed by avro? Like these:
...
58250 [Thread-210] INFO org.apache.avro.ipc.SocketTransceiver - closing to /
129.79.49.157:20000
59048 [Thread-211] INFO org.apache.avro.ipc.SocketTransceiver - closing to /
129.79.49.157:20000
60293 [SocketServer on 0.0.0.0/0.0.0.0:50000] INFO
org.apache.avro.ipc.SocketTransceiver - open to /129.79.49.157:49441
60293 [SocketServer on 0.0.0.0/0.0.0.0:50000] INFO
org.apache.avro.ipc.SocketServer - stopping /0:0:0:0:0:0:0:0
60293 [SocketServer on 0.0.0.0/0.0.0.0:50000] INFO
org.apache.avro.ipc.SocketTransceiver - open to /129.79.49.157:49445
...
Yuduo Zhou
Re: How to remove the debug info?
Posted by Christopher Hunt <hu...@internode.on.net>.
Hi Doug,
I think that the topic of what to log in a log file is an interesting one. I've personally come to learn that what should go into the log file at INFO level and up is what is going to be useful to an administrator audience - not a developer audience. I don't think that logging network transactions is useful to the administrator from a general perspective - they just want to understand about things that they should attend to.
There's a great book that also covers this: http://www.pragprog.com/titles/mnee/release-it
Kind regards,
Christopher
On 13/11/2010, at 10:32 AM, Doug Cutting wrote:
> On 11/12/2010 03:08 PM, Christopher Hunt wrote:
>> I'd say that's definitely DEBUG/TRACE level information.
>
> I think it may depend on the application. For server-side and distributed applications it's common to log each network transaction by default, no? But if folks feel strongly about it, feel free to file a Jira issue. I would be happy to change the level of such messages from INFO to DEBUG, provided no one objects.
>
> Doug
Re: How to remove the debug info?
Posted by Doug Cutting <cu...@apache.org>.
On 11/12/2010 03:08 PM, Christopher Hunt wrote:
> I'd say that's definitely DEBUG/TRACE level information.
I think it may depend on the application. For server-side and
distributed applications it's common to log each network transaction by
default, no? But if folks feel strongly about it, feel free to file a
Jira issue. I would be happy to change the level of such messages from
INFO to DEBUG, provided no one objects.
Doug
Re: How to remove the debug info?
Posted by Christopher Hunt <hu...@internode.on.net>.
Hi Doug,
I'd say that's definitely DEBUG/TRACE level information.
Kind regards,
Christopher
On 13/11/2010, at 9:29 AM, Doug Cutting wrote:
> Logging network connections at INFO seems reasonable to me. But if folks feel this is overly verbose then we could reduce these to DEBUG level so they'd not be printed by default.
Re: How to remove the debug info?
Posted by Yuduo Zhou <yu...@gmail.com>.
Thanks Doug, this helps a lot.
-Yuduo
On Nov 12, 2010, at 5:29 PM, Doug Cutting <cu...@apache.org> wrote:
> These are printed because they're logged at the INFO level and the default logger is slf4j's SimpleLogger:
>
> http://www.slf4j.org/api/org/slf4j/impl/SimpleLogger.html
>
> To disable them you could put a different slf4j logging implementation jar on your classpath. E.g., instead of slf4j-simple.jar, use slf4j-nop.jar to disable log output altogether, or use slf4j-jdk14.jar (Java's built-in logging system) or slf4j-log4j12 (log4j) and configure the corresponding logging system.
>
> Logging network connections at INFO seems reasonable to me. But if folks feel this is overly verbose then we could reduce these to DEBUG level so they'd not be printed by default.
>
> Doug
>
> On 11/12/2010 10:15 AM, Yuduo Zhou wrote:
>> Hi all,
>> This is a rookie question, but I didn't find a solution.
>> How can I get rid of the debug info printed by avro? Like these:
>> ...
>> 58250 [Thread-210] INFO org.apache.avro.ipc.SocketTransceiver - closing
>> to /129.79.49.157:20000 <http://129.79.49.157:20000>
>> 59048 [Thread-211] INFO org.apache.avro.ipc.SocketTransceiver - closing
>> to /129.79.49.157:20000 <http://129.79.49.157:20000>
>> 60293 [SocketServer on 0.0.0.0/0.0.0.0:50000
>> <http://0.0.0.0/0.0.0.0:50000>] INFO
>> org.apache.avro.ipc.SocketTransceiver - open to /129.79.49.157:49441
>> <http://129.79.49.157:49441>
>> 60293 [SocketServer on 0.0.0.0/0.0.0.0:50000
>> <http://0.0.0.0/0.0.0.0:50000>] INFO org.apache.avro.ipc.SocketServer -
>> stopping /0:0:0:0:0:0:0:0
>> 60293 [SocketServer on 0.0.0.0/0.0.0.0:50000
>> <http://0.0.0.0/0.0.0.0:50000>] INFO
>> org.apache.avro.ipc.SocketTransceiver - open to /129.79.49.157:49445
>> <http://129.79.49.157:49445>
>> ...
>>
>> Yuduo Zhou
>>
Re: How to remove the debug info?
Posted by Doug Cutting <cu...@apache.org>.
These are printed because they're logged at the INFO level and the
default logger is slf4j's SimpleLogger:
http://www.slf4j.org/api/org/slf4j/impl/SimpleLogger.html
To disable them you could put a different slf4j logging implementation
jar on your classpath. E.g., instead of slf4j-simple.jar, use
slf4j-nop.jar to disable log output altogether, or use slf4j-jdk14.jar
(Java's built-in logging system) or slf4j-log4j12 (log4j) and configure
the corresponding logging system.
Logging network connections at INFO seems reasonable to me. But if
folks feel this is overly verbose then we could reduce these to DEBUG
level so they'd not be printed by default.
Doug
On 11/12/2010 10:15 AM, Yuduo Zhou wrote:
> Hi all,
> This is a rookie question, but I didn't find a solution.
> How can I get rid of the debug info printed by avro? Like these:
> ...
> 58250 [Thread-210] INFO org.apache.avro.ipc.SocketTransceiver - closing
> to /129.79.49.157:20000 <http://129.79.49.157:20000>
> 59048 [Thread-211] INFO org.apache.avro.ipc.SocketTransceiver - closing
> to /129.79.49.157:20000 <http://129.79.49.157:20000>
> 60293 [SocketServer on 0.0.0.0/0.0.0.0:50000
> <http://0.0.0.0/0.0.0.0:50000>] INFO
> org.apache.avro.ipc.SocketTransceiver - open to /129.79.49.157:49441
> <http://129.79.49.157:49441>
> 60293 [SocketServer on 0.0.0.0/0.0.0.0:50000
> <http://0.0.0.0/0.0.0.0:50000>] INFO org.apache.avro.ipc.SocketServer -
> stopping /0:0:0:0:0:0:0:0
> 60293 [SocketServer on 0.0.0.0/0.0.0.0:50000
> <http://0.0.0.0/0.0.0.0:50000>] INFO
> org.apache.avro.ipc.SocketTransceiver - open to /129.79.49.157:49445
> <http://129.79.49.157:49445>
> ...
>
> Yuduo Zhou
>