Description
- org.joget.commons.util.LogUtil
- Under wflow-commons module
- Utility methods to log message to log file
Code Sample
Code Block |
---|
|
import java.lang.Exception;
import org.joget.commons.util.LogUtil;
try {
//do something
} catch (Exception e) {
LogUtil.error("org.sample.SamplePlugin", e, "Error!!");
} |
Methods
debug
public static void debug(java.lang.String className, java.lang.String message)
English |
---|
Log message with logger level is debug |
Thai |
---|
ข้อความบันทึกที่มีระดับตัวบันทึกคือการดีบัก |
error
public static void error(java.lang.String className, java.lang.Throwable e, java.lang.String message)
Log exception message with logger level is error
Thai |
---|
ข้อความแสดงข้อยกเว้นบันทึกที่มีระดับตัวบันทึกคือข้อผิดพลาด |
getTomcatLogFile
public static java.io.File getTomcatLogFile(java.lang.String filename)
Convenient method to retrieve all tomcat log file by file name
Thai |
---|
วิธีที่สะดวกในการเรียกคืนล็อกไฟล์ Tomcat ทั้งหมดโดยใช้ชื่อไฟล์ |
info
public static void info(java.lang.String className, java.lang.String message)
Log message with logger level is info
Thai |
---|
ข้อความบันทึกที่มีระดับตัวบันทึกคือข้อมูล |
isDeployInTomcat
public static java.lang.Boolean isDeployInTomcat()
Check is the current installation is deploy in Tomcat server
Thai |
---|
ตรวจสอบว่าการติดตั้งปัจจุบันถูกปรับใช้ในเซิร์ฟเวอร์ Tomcat |
tomcatLogFiles
public static java.io.File[] tomcatLogFiles()
Convenient method to retrieve all tomcat log files
Thai |
---|
วิธีที่สะดวกในการดึงไฟล์บันทึกของ Tomcat ทั้งหมด |
warn
public static void warn(java.lang.String className, java.lang.String message)
Log message with logger level is warn
Thai |
---|
ข้อความบันทึกที่มีระดับตัวบันทึกถูกเตือน |