Thank you for your selection of using our component.
Copyright: Copyright (c) 2009 Thousand Origami Cranes Corp.
Create Time: 25 Dec 2009 19:21:57 @author Kevin.Zhou @version 1.0 @see com.toc.logging.Configuration
2223242526272829303132
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(); } }
1819202122232425262728
Log log = null; @Before public void init() { try { log = new Log(); } catch(Exception e) { fail("Failed initial Test Console Logging"); e.printStackTrace(); } }
2324252627282930313233
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(); } }