Add fine level logging methods

We currently only have one method for fine level logging. Add another three so that fine level logging can be called just like other levels.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=158760803
This commit is contained in:
jianglai 2017-06-12 14:04:28 -07:00 committed by Ben McIlwain
parent f3f5f7652b
commit 3a02e6fb11

View file

@ -49,10 +49,22 @@ public class FormattingLogger {
} }
} }
public void fine(String msg) {
log(Level.FINE, null, msg);
}
public void fine(Throwable cause, String msg) {
log(Level.FINE, cause, msg);
}
public void finefmt(String fmt, Object... args) { public void finefmt(String fmt, Object... args) {
log(Level.FINE, null, String.format(fmt, args)); log(Level.FINE, null, String.format(fmt, args));
} }
public void finefmt(Throwable cause, String fmt, Object... args) {
log(Level.FINE, cause, String.format(fmt, args));
}
public void info(String msg) { public void info(String msg) {
log(Level.INFO, null, msg); log(Level.INFO, null, msg);
} }