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 ?
How to close the Console log print
Re: How to close the Console log print
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
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
-
- Posts: 12
- Joined: Fri Feb 17, 2017 10:53 am
Re: How to close the Console log print
The false command will disallow it completely? Did it work?
Re: How to close the Console log print
Yes it work well!MohBenista wrote:The false command will disallow it completely? Did it work?
I develop in vs2010,no ranorex studio!
-
- Posts: 12
- Joined: Fri Feb 17, 2017 10:53 am
Re: How to close the Console log print
Fent12 wrote:Yes it work well!MohBenista wrote:The false command will disallow it completely? Did it work?
I develop in vs2010,no ranorex studio!
Alright I will try this then. Thanks for sharing.
-
- Posts: 12
- Joined: Fri Feb 17, 2017 10:53 am
Re: How to close the Console log print
Worked thanks!