how to turn off logging for Test Stack White?
Asked Answered
F

2

6

White is outputting a lot of logs to the Console and I want to turn it off to see my output. How is it possible? I tried the below but still see logs. Is there more code that needs to be added?

void func()
{
    CoreAppXmlConfiguration.Instance.LoggerFactory = new WhiteDefaultLoggerFactory(LoggerLevel.Off);

    // Open application and perform actions...
}
Fulgor answered 23/4, 2015 at 21:26 Comment(0)
F
2

The code above seems to be working now.

Fulgor answered 28/4, 2015 at 13:16 Comment(0)
B
0

Try to use ConsoleFactory instead of WhiteDefaultLoggerFactory.

CoreAppXmlConfiguration.Instance.LoggerFactory = new ConsoleFactory(LoggerLevel.Error)
Bassarisk answered 8/7, 2015 at 20:52 Comment(1)
Doesn't help. Even assigning it to your own factory that creates your own logger that does NOTHING in any of the methods STILL causes console to be logged to.Rhettrhetta

© 2022 - 2024 — McMap. All rights reserved.