Improved toString() method
This commit is contained in:
parent
2664d31a7d
commit
f2180bfa81
1 changed files with 3 additions and 1 deletions
|
@ -94,7 +94,9 @@ public class Logger implements Log {
|
|||
* Return a string representation of this Logger
|
||||
*/
|
||||
public String toString() {
|
||||
return "Logger[" + canonicalName + "]";
|
||||
return new StringBuffer(getClass().getName()).append("[")
|
||||
.append(canonicalName).append(",").append(logLevel)
|
||||
.append("]").toString();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue