How can i use c# to turn off appium console log?

I don’t want appium console to display log. How to use c# to set up log level of appium. or how to turn off console log?
I only see the help document as following:
–log-level debug log level; default (console[:file]): debug[:debug] --log-level debug

but “appium --log-level error” doesn’t work.