Package org.alfresco.solr.logging
Class Log
- java.lang.Object
-
- org.alfresco.solr.logging.Log
-
public class Log extends Object
Logging utility. It is a simple wrapper around a logger implementation, which allows a more concise code.- Since:
- 1.3
- Author:
- Andrea Gazzarini
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddebug(String message, Object... params)Logs a given message with DEBUG level.voiderror(String message, Object... params)Logs a given message with ERROR level.voidinfo(String message, Object... params)Logs a given message with INFO level.voidwarning(String message, Object... params)Logs a given message with WARNING level.
-
-
-
Constructor Detail
-
Log
public Log(Class owner)
-
-
Method Detail
-
debug
public void debug(String message, Object... params)
Logs a given message with DEBUG level.- Parameters:
message- the message template (with placeholders)params- the optional array of values.
-
warning
public void warning(String message, Object... params)
Logs a given message with WARNING level.- Parameters:
message- the message template (with placeholders)params- the optional array of values.
-
error
public void error(String message, Object... params)
Logs a given message with ERROR level.- Parameters:
message- the message template (with placeholders)params- the optional array of values.
-
-