You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@reef.apache.org by Dhruv Mahajan <dh...@gmail.com> on 2016/04/06 06:37:52 UTC
Question regarding Logger
Hi
I have question regarding Logger class.....By default Logger writes to
standard output stream right? In one of my tests, I used Console.SetOut to
redirect these outputs to a stream. If I use Logger.Log for logging I do
not get anything in that stream while using Console.WriteLine achieves the
desired redirection to the stream. Can somebody explain me the difference
between Console.WriteLine and Logger.Log writing to standard output.
Dhruv
Re: Question regarding Logger
Posted by Dhruv Mahajan <dh...@gmail.com>.
Never mind....it seems Logger was instantiated before stdout was
redirected. So seems ok.
On Tue, Apr 5, 2016 at 9:37 PM, Dhruv Mahajan <dh...@gmail.com>
wrote:
> Hi
>
> I have question regarding Logger class.....By default Logger writes to
> standard output stream right? In one of my tests, I used Console.SetOut to
> redirect these outputs to a stream. If I use Logger.Log for logging I do
> not get anything in that stream while using Console.WriteLine achieves the
> desired redirection to the stream. Can somebody explain me the difference
> between Console.WriteLine and Logger.Log writing to standard output.
>
> Dhruv
>