Class LoggingModule
java.lang.Object
com.github.collinalpert.java2db.modules.LoggingModule
public class LoggingModule
extends java.lang.Object
A helper module which logs messages based on a condition.
- Author:
- Collin Alpert
-
Method Summary
Modifier and Type Method Description static LoggingModulegetInstance()voidlog(java.lang.String text)Prints messages to the query, while considering theDBConnection.LOG_QUERIESconstant.voidlogf(java.lang.String text, java.lang.Object... params)Prints formatted messages to the query, while considering theDBConnection.LOG_QUERIESconstant.
-
Method Details
-
getInstance
-
log
public void log(java.lang.String text)Prints messages to the query, while considering theDBConnection.LOG_QUERIESconstant.- Parameters:
text- The message to print.
-
logf
public void logf(java.lang.String text, java.lang.Object... params)Prints formatted messages to the query, while considering theDBConnection.LOG_QUERIESconstant.- Parameters:
text- The formatted text.params- The parameters to be inserted into the string.
-