Skip to content
Permalink
Browse files
[FIXED JENKINS-15226] Log recorders do not work reliably.
  • Loading branch information
jglick committed Sep 19, 2012
1 parent 991072b commit f9583b89c47833b86c1d3b88c0515d0adfd69192
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
@@ -55,6 +55,9 @@
<!-- Record your changes in the trunk here. -->
<div id="trunk" style="display:none"><!--=TRUNK-BEGIN=-->
<ul class=image>
<li class=bug>
Log recorders do not work reliably.
(<a href="https://issues.jenkins-ci.org/browse/JENKINS-15226">issue 15226</a>)
<li class=>
</ul>
</div><!--=TRUNK-END=-->
@@ -87,6 +87,7 @@ public void publish(LogRecord record) {
public static final class Target {
public final String name;
private final int level;
private transient /* almost final*/ Logger logger;

public Target(String name, Level level) {
this(name,level.intValue());
@@ -118,7 +119,10 @@ public boolean includes(LogRecord r) {
}

public Logger getLogger() {
return Logger.getLogger(name);
if (logger == null) {
logger = Logger.getLogger(name);
}
return logger;
}

/**

0 comments on commit f9583b8

Please sign in to comment.