1 24 31 32 package org.datashare; 33 34 import java.util.Hashtable ; 35 36 43 public interface LoggingInterface 44 { 45 49 51 52 53 54 final static int DEBUG = 1; 56 final static int WARNING = 2; 57 final static int ERROR = 3; 58 final static int FATALERROR = 4; 59 60 final static String levelStrings[] = 61 { "Unkown", "Debug", "Warning", "Error", "FatalError" }; 62 63 final static int CLIENT = 1; 65 final static int SESSION = 2; 66 final static int DATABASE = 3; 67 final static int NETWORK = 4; 68 final static int GENERALSTATUS = 5; 69 70 final static String categoryStrings[] = 71 { "Unknown", "Client", "Session", "Database", "Network", "GeneralStatus" }; 72 73 78 void logException(int level, Exception e); 79 80 88 void debugMsg(int level, int category, String msg); 89 90 91 } 92 93 | Popular Tags |