org.scribble.common.logging
Class ConsoleJournal

java.lang.Object
  extended by org.scribble.common.logging.ConsoleJournal
All Implemented Interfaces:
Journal

public class ConsoleJournal
extends Object
implements Journal

This class provides an implementation of the journal that reports issues to the console.


Field Summary
 
Fields inherited from interface org.scribble.common.logging.Journal
END_COLUMN, END_LINE, END_POSITION, RESOURCE_URL, START_COLUMN, START_LINE, START_POSITION
 
Constructor Summary
ConsoleJournal()
           
 
Method Summary
 void error(String issue, Map<String,Object> props)
          This method records an error issue.
 void info(String issue, Map<String,Object> props)
          This method records an information issue.
 void warning(String issue, Map<String,Object> props)
          This method records a warning issue.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConsoleJournal

public ConsoleJournal()
Method Detail

error

public void error(String issue,
                  Map<String,Object> props)
This method records an error issue.

Specified by:
error in interface Journal
Parameters:
issue - The issue text
props - The optional properties associated with the issue

warning

public void warning(String issue,
                    Map<String,Object> props)
This method records a warning issue.

Specified by:
warning in interface Journal
Parameters:
issue - The issue text
props - The optional properties associated with the issue

info

public void info(String issue,
                 Map<String,Object> props)
This method records an information issue.

Specified by:
info in interface Journal
Parameters:
issue - The issue text
props - The optional properties associated with the issue


Copyright © 2008-Present Scribble.org. All Rights Reserved.