public final class SpLogger extends Object
If the stored procedure call exceed 200 ms (default value) then the call is logged as WARNING like:
n ms sp_name[sp_arguments]#sp_call_count
.
Example: 17 ms sp_get_user[3]#1
The default value can be changed with the interceptor.splogger.slow.query.duration
property in /spbee.properties
.
The logger name is: spLogger
If TRACE is enabled then every stored procedure call is logged.
Modifier and Type | Method and Description |
---|---|
static void |
after(Object id,
String spName,
Object... arguments)
Logs the execution duration of the stored procedure call.
|
static Object |
before(String spName,
Object... arguments)
Logs the invocation of the stored procedure call.
|
public static Object before(String spName, Object... arguments)
spName
- the name of the stored procedurearguments
- the arguments of the stored procedureafter(java.lang.Object, java.lang.String, java.lang.Object...)
methodpublic static void after(Object id, String spName, Object... arguments)
id
- the ID objectspName
- the name of the stored procedurearguments
- the arguments of the stored procedureCopyright © 2015. All rights reserved.