Right Java tools for J2EE, Web Service, Grid and more
|Home | Products | Documents | Downloads | Purchase | Support | Company | Partners | Contact |

com.acelet.opensource.logging
Class Alog

java.lang.Object
  extended bycom.acelet.opensource.logging.Alog

public final class Alog
extends java.lang.Object

License: Apache license.
The purpose of releasing this open source program is to prevent vendor lock in.

You can code your program using this class to indirectly use Acelet SuperLogging (com.acelet.logging). If you want to swith to another logging package later, you do not need to modify your program. All you have to do is:

1. modify this file to redirect to other logging packages.
2. replace existing com.acelet.opensource.Alog with your modified one.
3. you may have to restart your EJB server to make the changes effective.

This program is just a wrapper. For detailed information about the methods see documents of underlying package, such as com.acelet.logging.Logging.

Visit http://www.ACElet.com for more information.


Field Summary
static int CONFIG
          Log level value: for config information in debugging.
static int FINE
          Log level value: for information such as recoverable failures.
static int FINER
          Log level value: for information about entering or returning a method, or throwing an exception.
static int FINEST
          Log level value: for detail tracing information.
static int INFO
          Log level value: for significant messages.
static int SEVERE
          Log level value: something will prevent normal program execution.
static int WARNING
          Log level value: something has potential problems.
 
Constructor Summary
Alog()
           
 
Method Summary
static void alert(java.lang.String subject, java.lang.String message)
           
static void error(java.lang.String text, int level, java.lang.String fullClassName, java.lang.String methodName, java.lang.String baseFileName, int lineNumber)
           
static void log(java.lang.String msg, int level)
           
static void log(java.lang.String msg, int level, java.lang.String producer, java.lang.String why)
           
static void log(java.lang.String text, int level, java.lang.String fullClassName, java.lang.String methodName, java.lang.String baseFileName, int lineNumber)
           
static void sendMail(java.lang.String to, java.lang.String from, java.lang.String subject, java.lang.String text)
           
static void sendMail(java.lang.String to, java.lang.String cc, java.lang.String bcc, java.lang.String from, java.lang.String subject, java.lang.String text)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SEVERE

public static int SEVERE
Log level value: something will prevent normal program execution.


WARNING

public static int WARNING
Log level value: something has potential problems.


INFO

public static int INFO
Log level value: for significant messages.


CONFIG

public static int CONFIG
Log level value: for config information in debugging.


FINE

public static int FINE
Log level value: for information such as recoverable failures.


FINER

public static int FINER
Log level value: for information about entering or returning a method, or throwing an exception.


FINEST

public static int FINEST
Log level value: for detail tracing information.

Constructor Detail

Alog

public Alog()
Method Detail

alert

public static void alert(java.lang.String subject,
                         java.lang.String message)

error

public static void error(java.lang.String text,
                         int level,
                         java.lang.String fullClassName,
                         java.lang.String methodName,
                         java.lang.String baseFileName,
                         int lineNumber)

log

public static void log(java.lang.String msg,
                       int level)

log

public static void log(java.lang.String msg,
                       int level,
                       java.lang.String producer,
                       java.lang.String why)

log

public static void log(java.lang.String text,
                       int level,
                       java.lang.String fullClassName,
                       java.lang.String methodName,
                       java.lang.String baseFileName,
                       int lineNumber)

sendMail

public static void sendMail(java.lang.String to,
                            java.lang.String from,
                            java.lang.String subject,
                            java.lang.String text)
                     throws java.lang.Exception
Throws:
java.lang.Exception

sendMail

public static void sendMail(java.lang.String to,
                            java.lang.String cc,
                            java.lang.String bcc,
                            java.lang.String from,
                            java.lang.String subject,
                            java.lang.String text)
                     throws java.lang.Exception
Throws:
java.lang.Exception

Copyright Acelet Corporation. 2000-2007. All rights reserved.