Description

ลักษณะ

Code Sample

ตัวอย่างโค้ด

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)
Log message with logger level is debug

ข้อความบันทึกที่มีระดับตัวบันทึกคือการดีบัก

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

ข้อความแสดงข้อยกเว้นบันทึกที่มีระดับตัวบันทึกคือข้อผิดพลาด

getTomcatLogFile
public static java.io.File getTomcatLogFile(java.lang.String filename)

Convenient method to retrieve all tomcat log file by file name 

วิธีที่สะดวกในการเรียกคืนล็อกไฟล์ Tomcat ทั้งหมดโดยใช้ชื่อไฟล์

info
public static void info(java.lang.String className, java.lang.String message)

Log message with logger level is info

ข้อความบันทึกที่มีระดับตัวบันทึกคือข้อมูล

isDeployInTomcat
public static java.lang.Boolean isDeployInTomcat()

Check is the current installation is deploy in Tomcat server

ตรวจสอบว่าการติดตั้งปัจจุบันถูกปรับใช้ในเซิร์ฟเวอร์ Tomcat

tomcatLogFiles
public static java.io.File[] tomcatLogFiles()

Convenient method to retrieve all tomcat log files 

วิธีที่สะดวกในการดึงไฟล์บันทึกของ Tomcat ทั้งหมด

warn
public static void warn(java.lang.String className, java.lang.String message)

Log message with logger level is warn

ข้อความบันทึกที่มีระดับตัวบันทึกถูกเตือน