use of org.apache.logging.log4j.core.appender.AppenderLoggingException in project logging-log4j2 by apache.
the class RollingRandomAccessFileManager method writeToDestination.
@Override
protected synchronized void writeToDestination(final byte[] bytes, final int offset, final int length) {
try {
randomAccessFile.write(bytes, offset, length);
size += length;
} catch (final IOException ex) {
final String msg = "Error writing to RandomAccessFile " + getName();
throw new AppenderLoggingException(msg, ex);
}
}
Aggregations