MCPcopy Index your code
hub / github.com/apache/tomcat / closeWriter

Method closeWriter

java/org/apache/juli/FileHandler.java:306–323  ·  view source on GitHub ↗

Close the currently open log file writer.

()

Source from the content-addressed store, hash-verified

304 * Close the currently open log file writer.
305 */
306 protected void closeWriter() {
307
308 writerLock.writeLock().lock();
309 try {
310 if (writer == null) {
311 return;
312 }
313 writer.write(getFormatter().getTail(this));
314 writer.flush();
315 writer.close();
316 writer = null;
317 date = null;
318 } catch (Exception e) {
319 reportError(null, e, ErrorManager.CLOSE_FAILURE);
320 } finally {
321 writerLock.writeLock().unlock();
322 }
323 }
324
325
326 /**

Callers 2

publishMethod · 0.95
closeMethod · 0.95

Calls 7

writeLockMethod · 0.80
getTailMethod · 0.80
lockMethod · 0.65
writeMethod · 0.65
flushMethod · 0.65
closeMethod · 0.65
unlockMethod · 0.65

Tested by

no test coverage detected