mirror of
https://github.com/google/nomulus.git
synced 2025-05-13 16:07:15 +02:00
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:
parent
f3f5f7652b
commit
3a02e6fb11
1 changed files with 12 additions and 0 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue