How to close the Console log print

Ask general questions here.
Fent12
Posts: 11
Joined: Tue Mar 21, 2017 9:38 am

How to close the Console log print

Post by Fent12 » Tue Mar 21, 2017 9:49 am

When run the case,
the console may print a lot of info ,
like this:
[2017/03/21 16:15:13.956][Debug ][Logger]: Console logger starting.
...
[2017/03/21 16:15:20.015][Debug ][Logger]: Console logger stopping.

but I don't want to print this ,i want only my custom logger
somebody know how to close or forbid this ?

Fent12
Posts: 11
Joined: Tue Mar 21, 2017 9:38 am

Re: How to close the Console log print

Post by Fent12 » Wed Mar 22, 2017 8:05 am

This question have solved
Use
TestReport.Setup(ReportLevel minLevel, string fileName, bool logToConsole)
to set the log environment

if don't want the console log ,can set the logToConsole = false

MohBenista
Posts: 12
Joined: Fri Feb 17, 2017 10:53 am

Re: How to close the Console log print

Post by MohBenista » Wed Mar 22, 2017 1:53 pm

The false command will disallow it completely? Did it work?

Fent12
Posts: 11
Joined: Tue Mar 21, 2017 9:38 am

Re: How to close the Console log print

Post by Fent12 » Fri Mar 24, 2017 4:33 am

MohBenista wrote:The false command will disallow it completely? Did it work?
Yes it work well!
I develop in vs2010,no ranorex studio!

MohBenista
Posts: 12
Joined: Fri Feb 17, 2017 10:53 am

Re: How to close the Console log print

Post by MohBenista » Thu Mar 30, 2017 9:09 am

Fent12 wrote:
MohBenista wrote:The false command will disallow it completely? Did it work?
Yes it work well!
I develop in vs2010,no ranorex studio!

Alright I will try this then. Thanks for sharing.

MohBenista
Posts: 12
Joined: Fri Feb 17, 2017 10:53 am

Re: How to close the Console log print

Post by MohBenista » Sun Jul 09, 2017 2:59 pm

Worked thanks!