KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > services > log > LogMessage


1 package org.exoplatform.services.log;
2
3 /**
4  * Copyright 2001-2003 The eXo platform SARL All rights reserved.
5  * Please look at license.txt in info directory for more license detail.
6  **/

7
8 /**
9  * Created by the Exo Development team.
10  * Author : Tuan Nguyen
11  * tuan08@users.sourceforge.net
12  * Date: 14 nov. 2003
13  * Time: 20:19:45
14  */

15 public class LogMessage {
16
17   static public int FATAL = 0 ;
18   static public int ERROR = 1 ;
19   static public int WARN = 2 ;
20   static public int INFO = 3 ;
21   static public int DEBUG = 4 ;
22   static public int TRACE = 5 ;
23   
24   private String JavaDoc name_ ;
25   private int type_ ;
26   private String JavaDoc message_ ;
27   private String JavaDoc detail_ ;
28   
29
30   public LogMessage(String JavaDoc name, int type, String JavaDoc message, String JavaDoc detail) {
31     name_ = name ;
32     type_ = type ;
33     message_ = message ;
34     detail_ = detail ;
35   }
36   
37   public String JavaDoc getName() { return name_ ; }
38   
39   public int getType() { return type_ ; }
40   
41   public String JavaDoc getMessage() { return message_ ; }
42
43   public String JavaDoc getDetail() { return detail_ ; }
44
45 }
46
Popular Tags