com.monad.homerun.log
Interface LogService


public interface LogService

LogService defines the logging service interface


Method Summary
 void addObserver(java.lang.String category, java.util.Observer observer)
          Adds a log observer
 boolean archiveLogs(LogTag[] tags)
          Archives the described set of logs
 java.util.logging.Logger getLogger()
          Returns the default logger
 java.util.logging.Logger getLogger(java.lang.String categoryName)
          Returns a logger for given category
 void removeLogs(LogTag[] tags)
          Removes the described set of logs
 void setLogLevel(java.lang.String category, java.lang.String action, java.lang.String level)
          Sets the logging level threshold for a log action
 void startLog(java.lang.String category)
          Starts a log for a category
 void stopLog(java.lang.String category)
          Stops a log for a caegory
 void sysLog(java.lang.String message)
          Special purpose logging call for when logging services may not be available
 

Method Detail

getLogger

java.util.logging.Logger getLogger()
Returns the default logger

Returns:
default logger to use

getLogger

java.util.logging.Logger getLogger(java.lang.String categoryName)
Returns a logger for given category

Parameters:
categoryName - the name of the category
Returns:
a logger

sysLog

void sysLog(java.lang.String message)
Special purpose logging call for when logging services may not be available

Parameters:
message - message to log

startLog

void startLog(java.lang.String category)
Starts a log for a category

Parameters:
category - category name

stopLog

void stopLog(java.lang.String category)
Stops a log for a caegory

Parameters:
category - category name

setLogLevel

void setLogLevel(java.lang.String category,
                 java.lang.String action,
                 java.lang.String level)
Sets the logging level threshold for a log action

Parameters:
category - log category name
action - log action
level - effective threshold

archiveLogs

boolean archiveLogs(LogTag[] tags)
Archives the described set of logs

Parameters:
tags - descriptions of the logs to be archived
Returns:
status of archive true if archive created, else false

removeLogs

void removeLogs(LogTag[] tags)
Removes the described set of logs

Parameters:
tags - descriptions of the logs to be removed

addObserver

void addObserver(java.lang.String category,
                 java.util.Observer observer)
Adds a log observer

Parameters:
category - log catgory
observer - the observer


Copyright © 2006-2009 Richard Rodgers. All Rights Reserved.