Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ログを に書き込む最も簡単な方法は何tomcat/catalina.outですか? 私は試してみSystem.out.print()ましたが、System.err.print()うまく機能しています。
tomcat/catalina.out
System.out.print()
System.err.print()
sysoutとにもかかわらず、使用するより良いオプションがあるかどうかを知りたいだけですsyserrか?
sysout
syserr
import java.util.logging.* Logger.getLogger (YourClass.class.getName()).log(Level.WARNING, e.getMessage(), e); Logger.getLogger (YourClass.class.getName()).log(Level.INFO, "hello world");