有时候需要通过server tomcat的相关日志来获取一些信息进行问题排查,但进入安装目录下C:\Program Files\ArcGIS\Server\framework\runtime\tomcat\logs发现没有任何日志信息,这可能是日志关闭了,需要手动设置一下日志级别。
1、停止ArcGIS Server服务
2、进入C:\Program Files\ArcGIS\Server\framework\runtime\tomcat\bin,编辑catalina.bat文件,找到set CATALINA_LOG_LEVEL这行,这是set CATALINA_LOG_LEVEL=SEVERE,如果日志没有开的话,应该是OFF。级别可以自行设置,级别说明如下:
Log level Description
SEVERE(highest) Captures exception and Error
WARNING Warning messages
INFO Informational message, related to the server activity
CONFIG Configuration message
FINE Detailed activity of the server transaction (similar to debug)
FINER More detailed logs than FINE
FINEST(least) Entire flow of events (similar to trace)
3、去掉framework/runtime/tomcat/conf/logging.properties.disabled文件的后缀名disabled
4、启动server服务