Examples of RollingFileWriter


Examples of org.clapper.util.io.RollingFileWriter

    protected void runCommand()
        throws CommandLineException
    {
        try
        {
            RollingFileWriter w = new RollingFileWriter (fileNamePattern,
                                                         null,
                                                         maxSize,
                                                         maxFiles,
                                                         compressionType,
                                                         this);

            for (int i = 0; i < totalLines; i++)
            {
                w.print (dateFormat.format (new Date()));
                w.println (" Test message " + i);
            }
        }

        catch (Exception ex)
        {
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.