Package com.toc.logging.writer

Examples of com.toc.logging.writer.ConsoleWriter


   * Constrain a new Log object without configuration object.
   * @throws GenericException Throw the GenericException, refer to com.toc.lib.exception.GenericException.
   */
  public Log() throws GenericException {
    try {
      defaultWriter = new ConsoleWriter(new WriterConfig());
      writers = new ArrayList<Writer>();
      config = new Configuration();
      loadConfig(config);
    } catch(Exception e) {
      e.printStackTrace();
View Full Code Here


   * @param config {@link com.toc.logging.Configuration}
   * @throws GenericException Throw the GenericException, refer to com.toc.lib.exception.GenericException.
   */
  public Log(Configuration config) throws GenericException {
    try {
      defaultWriter = new ConsoleWriter(new WriterConfig());
      writers = new ArrayList<Writer>();
      loadConfig(config);
   } catch(Exception e) {
     e.printStackTrace();
    }
View Full Code Here

TOP

Related Classes of com.toc.logging.writer.ConsoleWriter

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.