Package com.toc.logging

Examples of com.toc.logging.Configuration


  Log log = null;
 
  @Before
  public void init() {
    try {
      Configuration config = new Configuration();
      config.addWriter("Default", null, Log.CONSOLE|Log.FILE, Log.DEFAULT_OUTPUT, Log.DEFAULT_PATTERN,
          Log.DEFAULT_DATE_PATTERN, "TOC\\log", "TOC\\log\\history", "Log.log", 1, Log.DAILY, true, true);
      log = new Log(config);
    } catch(Exception e) {
      fail("Failed initial Test Console Logging");
      e.printStackTrace();
View Full Code Here


public class JTestLogHelper {
  @Before
  public void init() {
    try {
      Configuration config = LogHelper.getConfig();
      config.addWriter("Default", null, Log.DEFAULT_TARGET, Log.DEFAULT_OUTPUT, Log.DEFAULT_PATTERN, Log.DEFAULT_DATE_PATTERN, null, null, null, 0, 0, true, true);
      LogHelper.loadConfig(config);
    } catch(Exception e) {
      fail("Failed initial Test Console Logging");
      e.printStackTrace();
    }
View Full Code Here

 
  @Before
  public void init() {
    try {
      String pattern = "[%D %T] - %M (%C:%L)";
      Configuration config = new Configuration();
      config.addWriter("Default", null, Log.CONSOLE, Log.DEFAULT_OUTPUT, pattern,
          Log.DEFAULT_DATE_PATTERN, null, null, null, 0, Log.NEVER, true, true);
      log = new Log(config);
    } catch(Exception e) {
      fail("Failed initial Test Console Logging");
      e.printStackTrace();
View Full Code Here

TOP

Related Classes of com.toc.logging.Configuration

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.