Class StorageLogAppender
- java.lang.Object
-
- fr.gouv.vitam.storage.engine.server.storagelog.StorageLogAppender
-
- All Implemented Interfaces:
VitamAutoCloseable,java.lang.AutoCloseable
public class StorageLogAppender extends java.lang.Object implements VitamAutoCloseable
Storage log appender. Not thread-safe. Should not be invoked by multiple threads concurrently.
-
-
Constructor Summary
Constructors Constructor Description StorageLogAppender(java.nio.file.Path filePath)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidappend(StorageLogStructure parameters)Append to the current log.voidclose()
-
-
-
Method Detail
-
append
public void append(StorageLogStructure parameters) throws java.io.IOException
Append to the current log.- Parameters:
parameters- information to append to logFile- Throws:
java.io.IOException
-
close
public void close()
- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfaceVitamAutoCloseable
-
-