corelib.services.web.traces
Class WebTraceLogger

java.lang.Object
  extended by corelib.services.web.traces.WebTraceLogger

public class WebTraceLogger
extends java.lang.Object

This class permit to store and retrieve all messages produced by a web page. It permit alse to store an eventual exception.

Since:
0.2.0
Author:
Dominique Liard

Constructor Summary
WebTraceLogger()
          Class constructor.
 
Method Summary
 void error(java.lang.String message)
           
 void error(java.lang.String category, java.lang.String message)
           
 long getBeginNanoTime()
          Returns the instant where the page processing started, exprimed in nanoseconds.
 java.lang.Throwable getThrowable()
          Returns the eventually throwed exception during the page processing.
 void info(java.lang.String message)
           
 void info(java.lang.String category, java.lang.String message)
           
 void setThrowable(java.lang.Throwable throwable)
          Sets the fired exception into this trace logger.
 void warning(java.lang.String message)
           
 void warning(java.lang.String category, java.lang.String message)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebTraceLogger

public WebTraceLogger()
Class constructor.

Method Detail

getBeginNanoTime

public long getBeginNanoTime()
Returns the instant where the page processing started, exprimed in nanoseconds.

Returns:
The instant where the page processing started.

getThrowable

public java.lang.Throwable getThrowable()
Returns the eventually throwed exception during the page processing.

Returns:
The eventually throwed exception.
Since:
0.4.1

setThrowable

public void setThrowable(java.lang.Throwable throwable)
Sets the fired exception into this trace logger.

Parameters:
throwable - The fired exception.
Since:
0.4.1

info

public void info(java.lang.String message)

info

public void info(java.lang.String category,
                 java.lang.String message)

warning

public void warning(java.lang.String message)

warning

public void warning(java.lang.String category,
                    java.lang.String message)

error

public void error(java.lang.String message)

error

public void error(java.lang.String category,
                  java.lang.String message)


CAUTION: Ellipse is proposed to you in BETA version to allow evaluation of this framework. Infini Software is released from any responsibility for the use of Ellipse Framework.

Copyright 2012 Infini Software - All Rights Reserved.