Examples of FileHandler


Examples of java.util.logging.FileHandler

        dir =  new File(txlogDir);
        if (!dir.exists())  dir.mkdirs();


        String logfile = dir+File.separator+"jms%g.log";
        FileHandler h =  new FileHandler(logfile, true);
        h.setFormatter(new LogSimpleFormatter(logger));
        logger.addHandler(h);

        logger.log(Level.INFO, "Exported JMSBridgeStore txlogDir is "+txlogDir);
        logger.log(Level.INFO, "Exported JMSBridgeStore uses log domain: "+logdomain);
        logger.log(Level.INFO, "Exported JMSBridgeStore uses log file: "+logfile);
View Full Code Here

Examples of java.util.logging.FileHandler

        String counts = props.getProperty(domain+PROP_LOGFILE_COUNT_SUFFIX);
        if (counts != null) {
            count = Integer.parseInt(counts);
        }

        FileHandler h = new FileHandler(logfile, limit, count, true);
        h.setFormatter(new LogSimpleFormatter(_logger))
        _logger.addHandler(h);

        _logger.log(Level.INFO, getStompBridgeResources().getString(StompBridgeResources.I_LOG_DOMAIN, domain));
        _logger.log(Level.INFO, getStompBridgeResources().getString(StompBridgeResources.I_LOG_FILE, logfile)+"["+limit+","+count+"]");
View Full Code Here

Examples of net.sourceforge.marathon.util.FileHandler

    TextAreaOutput outputPane = new TextAreaOutput();
    State state = State.STOPPED_WITH_APP_CLOSED;
    private IEditor editor;

    public MockDisplayView() throws IOException {
        FileHandler fileHandler = new FileHandler(new MarathonFileFilter(".py", ScriptModelClientPart.getModel()), new File(
                System.getProperty(Constants.PROP_TEST_DIR)), new File(System.getProperty(Constants.PROP_FIXTURE_DIR)),
                Constants.getMarathonDirectories(Constants.PROP_MODULE_DIRS), null);
        editor = new RSTAEditor(true, 1);
        editor.setData("filehandler", fileHandler);
    }
View Full Code Here

Examples of org.apache.commons.configuration.io.FileHandler

     * @param refreshDelay the refresh delay; a value of 0 means that a check is
     *        performed in all cases
     */
    public FileHandlerReloadingDetector(FileHandler handler, long refreshDelay)
    {
        fileHandler = (handler != null) ? handler : new FileHandler();
        this.refreshDelay = refreshDelay;
    }
View Full Code Here

Examples of org.apache.commons.configuration2.io.FileHandler

    @Before
    public void setUp() throws Exception
    {
        // any concrete class will do
        PropertiesConfiguration c = new PropertiesConfiguration();
        new FileHandler(c).load(ConfigurationAssert
                .getTestFile("test.properties"));
        sync = new SynchronizerTestImpl();
        c.setSynchronizer(sync);
        config = c;
    }
View Full Code Here

Examples of org.apache.turbine.util.upload.FileHandler

                              ParameterParser params,
                              String path )
        throws TurbineException
    {
        String fileRepository = getRepository();
        FileHandler handler = new FileHandler( req, params, fileRepository );
        handler.setMaxSize( getSizeMax() );
        try
        {
            handler.saveStream();
        }
        catch (Exception e)
        {
            throw new TurbineException("File upload using FileHandler failed",
                                       e);
View Full Code Here

Examples of org.auto.io.scanner.FileHandler

  }

  public static void testPatternFileScanner() {
    DefaultFilePatternScanner scanner = new DefaultFilePatternScanner();
    FileHandler handler = new FileHandler() {

      @Override
      public void handle(File t) {
        System.out.println(t);
        Resource resource = new FileResource(t);
View Full Code Here

Examples of org.jboss.internal.soa.esb.couriers.helpers.FileHandler

               
                // Certain things can only be checked in local filesystem
                try
                {
                        _uri = _epr.getURI();
                        FileHandler handler = FileHandlerFactory.getInstance()
                                        .getFileHandler(_epr);
                        if (handler instanceof LocalFileHandler)
                        {
                                _localFhandler = (LocalFileHandler) handler;
                                File file = new File(_uri);
View Full Code Here

Examples of org.jboss.logmanager.handlers.FileHandler

    private String encoding;
    private boolean append;
    private FileHandler value;

    public synchronized void start(final StartContext context) throws StartException {
        final FileHandler handler = new FileHandler();
        value = handler;
        formatterSpec.apply(handler);
        if (level != null) handler.setLevel(level);
        handler.setAutoFlush(autoflush);
        try {
            handler.setEncoding(encoding);
        } catch (UnsupportedEncodingException e) {
            throw new StartException(e);
        }
        handler.setAppend(append);
        try {
            handler.setFileName(fileName.getValue());
        } catch (FileNotFoundException e) {
            throw new StartException(e);
        }
        value = handler;
    }
View Full Code Here

Examples of org.jboss.logmanager.handlers.FileHandler

        }
        value = handler;
    }

    public synchronized void stop(final StopContext context) {
        final FileHandler handler = value;
        handler.close();
        value = null;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.