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

org.knopflerfish.service.log.LogConfig Maven / Gradle / Ivy

Go to download

The Pax Logging API Library is to allow for the Pax Logging Service to be reloaded without stopping the many dependent bundles. It also contains the OSGi Log Service API and the Knopflerfish Log API.

There is a newer version: 2.2.7
Show newest version
package org.knopflerfish.service.log;

import java.io.File;
import java.util.HashMap;

public interface LogConfig {

    public void commit();

    public boolean isDefaultConfig();

    /**
     * Set number of log entries that are kept in memory.
     * 
     * @param size
     *            the new maximum number of log entries in memory.
     */
    public void setMemorySize(int size);

    public int getMemorySize();

    /**
     * Set the default filter level.
     * 
     * @param filter
     *            the new default filter level.
     */
    public void setFilter(int filter);

    public int getFilter();

    /**
     * Set the default filter level.
     * 
     * @param filter
     *            the new default filter level.
     * @param bundleLocation TODO
     */
    public void setFilter(String bundleLocation, int filter);

    public HashMap getFilters();

    /**
     * Property controling if log entries are written to System.out
     * or not.
     * 
     * @param b
     *            if true log entries will be written to
     *            System.out.
     */
    public void setOut(boolean b);

    public boolean getOut();

    public void setFile(boolean f);

    public boolean getFile();

    public File getDir();

    public void setFileSize(int fS);

    public int getFileSize();

    public void setMaxGen(int maxGen);

    public int getMaxGen();

    public void setFlush(boolean f);

    public boolean getFlush();

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy