public class CustomMongoDriverLogger extends Object implements com.mongodb.event.CommandListener
| 构造器和说明 |
|---|
CustomMongoDriverLogger(Boolean format) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
commandFailed(com.mongodb.event.CommandFailedEvent event)
处理命令失败事件
|
void |
commandStarted(com.mongodb.event.CommandStartedEvent event)
处理命令开始事件
|
void |
commandSucceeded(com.mongodb.event.CommandSucceededEvent event)
处理命令成功事件
|
public CustomMongoDriverLogger(Boolean format)
public void commandStarted(com.mongodb.event.CommandStartedEvent event)
commandStarted 在接口中 com.mongodb.event.CommandListenerpublic void commandSucceeded(com.mongodb.event.CommandSucceededEvent event)
commandSucceeded 在接口中 com.mongodb.event.CommandListenerpublic void commandFailed(com.mongodb.event.CommandFailedEvent event)
commandFailed 在接口中 com.mongodb.event.CommandListenerCopyright © 2023. All rights reserved.