|
|
|
@ -38,42 +38,42 @@ public class DeferredLog implements Log { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public boolean isTraceEnabled() { |
|
|
|
public boolean isTraceEnabled() { |
|
|
|
synchronized (this.lines) { |
|
|
|
synchronized (this.lines) { |
|
|
|
return (this.destination != null) ? this.destination.isTraceEnabled() : true; |
|
|
|
return (this.destination == null) || this.destination.isTraceEnabled(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public boolean isDebugEnabled() { |
|
|
|
public boolean isDebugEnabled() { |
|
|
|
synchronized (this.lines) { |
|
|
|
synchronized (this.lines) { |
|
|
|
return (this.destination != null) ? this.destination.isDebugEnabled() : true; |
|
|
|
return (this.destination == null) || this.destination.isDebugEnabled(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public boolean isInfoEnabled() { |
|
|
|
public boolean isInfoEnabled() { |
|
|
|
synchronized (this.lines) { |
|
|
|
synchronized (this.lines) { |
|
|
|
return (this.destination != null) ? this.destination.isInfoEnabled() : true; |
|
|
|
return (this.destination == null) || this.destination.isInfoEnabled(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public boolean isWarnEnabled() { |
|
|
|
public boolean isWarnEnabled() { |
|
|
|
synchronized (this.lines) { |
|
|
|
synchronized (this.lines) { |
|
|
|
return (this.destination != null) ? this.destination.isWarnEnabled() : true; |
|
|
|
return (this.destination == null) || this.destination.isWarnEnabled(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public boolean isErrorEnabled() { |
|
|
|
public boolean isErrorEnabled() { |
|
|
|
synchronized (this.lines) { |
|
|
|
synchronized (this.lines) { |
|
|
|
return (this.destination != null) ? this.destination.isErrorEnabled() : true; |
|
|
|
return (this.destination == null) || this.destination.isErrorEnabled(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public boolean isFatalEnabled() { |
|
|
|
public boolean isFatalEnabled() { |
|
|
|
synchronized (this.lines) { |
|
|
|
synchronized (this.lines) { |
|
|
|
return (this.destination != null) ? this.destination.isFatalEnabled() : true; |
|
|
|
return (this.destination == null) || this.destination.isFatalEnabled(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|