-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathLogger.java
More file actions
335 lines (311 loc) · 10.1 KB
/
Copy pathLogger.java
File metadata and controls
335 lines (311 loc) · 10.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
/*
* SemanticWebBuilder es una plataforma para el desarrollo de portales y aplicaciones de integración,
* colaboración y conocimiento, que gracias al uso de tecnología semántica puede generar contextos de
* información alrededor de algún tema de interés o bien integrar información y aplicaciones de diferentes
* fuentes, donde a la información se le asigna un significado, de forma que pueda ser interpretada y
* procesada por personas y/o sistemas, es una creación original del Fondo de Información y Documentación
* para la Industria INFOTEC, cuyo registro se encuentra actualmente en trámite.
*
* INFOTEC pone a su disposición la herramienta SemanticWebBuilder a través de su licenciamiento abierto al público ('open source'),
* en virtud del cual, usted podrá usarlo en las mismas condiciones con que INFOTEC lo ha diseñado y puesto a su disposición;
* aprender de él; distribuirlo a terceros; acceder a su código fuente y modificarlo, y combinarlo o enlazarlo con otro software,
* todo ello de conformidad con los términos y condiciones de la LICENCIA ABIERTA AL PÚBLICO que otorga INFOTEC para la utilización
* del SemanticWebBuilder 4.0.
*
* INFOTEC no otorga garantía sobre SemanticWebBuilder, de ninguna especie y naturaleza, ni implícita ni explícita,
* siendo usted completamente responsable de la utilización que le dé y asumiendo la totalidad de los riesgos que puedan derivar
* de la misma.
*
* Si usted tiene cualquier duda o comentario sobre SemanticWebBuilder, INFOTEC pone a su disposición la siguiente
* dirección electrónica:
* http://www.semanticwebbuilder.org.mx
*/
package org.semanticwb;
/**
* Registers data or messages in the application log file with different
* purposes.
* <p>
* Registra información o mensajes en el archivo de bitácora de la
* aplicación con diferentes propósitos.
* </p>
*
* @author Javier Solis
*/
public interface Logger {
/*
* Los 3 siguientes metodos son usados para debugueos mas profundos
*/
/**
* Registers the elements of the execution stack at the moment it is called
* along with a message, to provide information about an exceptional condition
* in order to trace the origin of that exceptional condition.
* <p>
* Registra los elementos de la pila de ejecución del hilo al momento en
* que es llamado, junto con un mensaje para proveer información sobre
* una condición excepcional a fin de rastrear su origen.
* </p>
*
* @param txt
* a string representing the message to include in the app's log
* @param t
* a throwable object indicating an exceptional condition
*/
void trace(String txt, Throwable t);
/**
* Registers a message to provide information about an exceptional condition in
* order to trace the origin of that exceptional condition.
* <p>
* Registra un mensaje para proveer información sobre una
* condición excepcional a fin de rastrear su origen.
* </p>
*
* @param txt
* a string representing the message to include in the app's log
*/
void trace(String txt);
/**
* Registers the elements of the execution stack at the moment it is called to
* provide information about an exceptional condition in order to trace the
* origin of that exceptional condition.
* <p>
* Registra los elementos de la pila de ejecución del hilo al momento en
* que es llamado para proveer información sobre una condición
* excepcional a fin de rastrear su origen.
* </p>
*
* @param t
* a throwable object indicating an exceptional condition
*/
void trace(Throwable t);
/*
* Los 3 siguientes metodos son usados para debugueos sencillos
*/
/**
* Registers an exceptional condition along with a message, to provide
* information about that exceptional condition.
* <p>
* Registra los elementos de la pila de ejecución del hilo al momento en
* que es llamado, junto con un mensaje, para proveer información sobre
* una condición excepcional.
* </p>
*
* @param txt
* a string representing the message to include in the app's log
* @param t
* a throwable object indicating an exceptional condition
*/
void debug(String txt, Throwable t);
/**
* Registers a message to provide information about an exceptional condition.
* <p>
* Registra un mensaje para proveer información sobre una
* condición excepcional.
* </p>
*
* @param txt
* a string representing the message to include in the app's log
*/
void debug(String txt);
/**
* Registers an exceptional condition in the execution of the current thread.
* <p>
* Registra una condición excepcional en la ejecución del hilo
* actual.
* </p>
*
* @param t
* a throwable object indicating an exceptional condition
*/
void debug(Throwable t);
/*
* Los 3 siguientes metodos son usados para Informacion del Sistema
*/
/**
* Registers the data needed to provide detail on an exceptional condition.
*
* @param txt
* a string representing the message to include in the app's log
* @param t
* a throwable object indicating an exceptional condition
*/
void info(String txt, Throwable t);
/**
* Registers a message to provide detail on an exceptional condition.
*
* @param txt
* a string representing the message to include in the app's log
*/
void info(String txt);
/**
* Registers an exceptional condition in an informative manner.
*
* @param t
* a throwable object indicating an exceptional condition
*/
void info(Throwable t);
/*
* Los 3 siguientes metodos son usados para registrar advertencias
*/
/**
* Registers data as a warning on an exceptional condition generated.
* <p>
* Registra información a manera de advertencia sobre una
* condición excepcional generada.
* </p>
*
* @param txt
* a string representing the message to include in the app's log
* @param t
* a throwable object indicating an exceptional condition
*/
void warn(String txt, Throwable t);
/**
* Registers a message as a warning on an exceptional condition generated.
* <p>
* Registra un mensaje a manera de advertencia sobre una condición
* excepcional generada.
* </p>
*
* @param txt
* a string representing the message to include in the app's log
*/
void warn(String txt);
/**
* Registers data as a warning on an exceptional condition generated.
* <p>
* Registra información a manera de advertencia sobre una
* condición excepcional generada.
* </p>
*
* @param t
* a throwable object indicating an exceptional condition
*/
void warn(Throwable t);
/*
* Los 3 siguientes metodos son usados para registrar errores
*/
/**
* Registers data to report an error in the application.
* <p>
* Registra información para reportar un error en la aplicación.
* </p>
*
* @param txt
* a string representing the message to include in the app's log
* @param t
* a throwable object indicating an exceptional condition
*/
void error(String txt, Throwable t);
/**
* Registers a message to report an error in the application.
* <p>
* Registra un mensaje para reportar un error en la aplicación.
* </p>
*
* @param txt
* a string representing the message to include in the app's log
*/
void error(String txt);
/**
* Registers data to report an error in the application.
* <p>
* Registra información para reportar un error en la aplicación.
* </p>
*
* @param t
* a throwable object indicating an exceptional condition
*/
void error(Throwable t);
/*
* Los 3 siguientes metodos son usados para registrar excepciones en tiempo de
* ejecución
*/
/**
* Registers data of an exceptional condition generated at runtime.
* <p>
* Registra información sobre una condición excepcional generada
* en tiempo de ejecución.
* </p>
*
* @param txt
* a string representing the message to include in the app's log
* @param t
* a throwable object indicating an exceptional condition
*/
void fatal(String txt, Throwable t);
/**
* Registers a message about an exceptional condition generated at runtime.
* <p>
* Registra un mensaje acerca de una condición excepcional generada en
* tiempo de ejecución.
* </p>
*
* @param txt
* a string representing the message to include in the app's log
*/
void fatal(String txt);
/**
* Registers data of an exceptional condition generated at runtime.
* <p>
* Registra información sobre una condición excepcional generada
* en tiempo de ejecución.
* </p>
*
* @param t
* a throwable object indicating an exceptional condition
*/
void fatal(Throwable t);
/*
* Los 3 siguientes metodos son usados para notificar eventos
*/
/**
* Registers data when certain event occurs.
* <p>
* Registra información cuando cierto evento ocurre.
* </p>
*
* @param txt
* a string representing the message to include in the app's log
* @param t
* a throwable object indicating an exceptional condition
*/
void event(String txt, Throwable t);
/**
* Registers a message when certain event occurs.
* <p>
* Registra un mensaje cuando cierto evento ocurre.
* </p>
*
* @param txt
* a string representing the message to include in the app's log
*/
void event(String txt);
/**
* Registers data when certain event occurs.
* <p>
* Registra información cuando cierto evento ocurre.
* </p>
*
* @param t
* a throwable object indicating an exceptional condition
*/
void event(Throwable t);
/**
* Regresa true si el nivel de loggeo es debug
*
* @return
*/
boolean isDebugEnabled();
/**
* Regresa true si el nivel de loggeo es trace
*
* @return
*/
boolean isTraceEnabled();
/**
* Regresa true si el nivel de loggeo es info
*
* @return
*/
boolean isInfoEnabled();
}