Java - How to check if file or console is associated with Standard Output?

前端 未结 0 1507
耶瑟儿~
耶瑟儿~ 2020-12-08 17:04

I am using following code to redirect standard out and standard error out to Log file depending on the boolean value of a variable.

if (logToFile==true){
java         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题