All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pamirs.pradar.PradarAppender Maven / Gradle / Ivy

There is a newer version: 1.0.2
Show newest version
package com.pamirs.pradar;


public abstract class PradarAppender {
    /**
     * 写日志
     *
     * @param log 追加的日志
     */
    public abstract void append(String log);

    /**
     * 刷新输出缓冲区
     */
    public abstract void flush();

    /**
     * 触发滚动
     */
    public abstract void rollOver();

    /**
     * 重新加载,这是为了防止在多进程环境并发写同一个文件导致问题
     */
    public abstract void reload();

    /**
     * 关闭输出,释放资源
     */
    public abstract void close();

    /**
     * 清理释放资源,一般用于清理滚动后要删除的文件,或者临时文件
     */
    public abstract void cleanup();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy