Package org.apache.log.output.io

Examples of org.apache.log.output.io.WriterTarget


        setPriority(appProperties.getProperty(prop), category);
      }
      if (prop.startsWith(LOG_FILE + ".")) {
        String category = prop.substring(LOG_FILE.length() + 1);
        String file = appProperties.getProperty(prop);
        setTarget(new WriterTarget(makeWriter(file, prop), getFormat()), category);
      }
    }
  }
View Full Code Here


    }
    Hierarchy.getDefaultHierarchy().setDefaultLogTarget(target);
  }

  private static LogTarget getTarget(Writer targetFile, PatternFormatter fmt) {
    return new WriterTarget(targetFile, fmt);
  }
View Full Code Here

    public void testWriterTarget()
        throws Exception
    {
        final ByteArrayOutputStream output = new ByteArrayOutputStream();
        final OutputStreamWriter writer = new OutputStreamWriter( output );
        final WriterTarget target = new WriterTarget( writer, FORMATTER );
        doStreamTest( output, target );
    }
View Full Code Here

    public void testWriterTarget()
        throws Exception
    {
        final ByteArrayOutputStream output = new ByteArrayOutputStream();
        final OutputStreamWriter writer = new OutputStreamWriter( output );
        final WriterTarget target = new WriterTarget( writer, FORMATTER );
        doStreamTest( output, target );
    }
View Full Code Here

TOP

Related Classes of org.apache.log.output.io.WriterTarget

Copyright © 2018 www.massapicom. 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.