Class 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
      void append​(StorageLogStructure parameters)
      Append to the current log.
      void close()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • StorageLogAppender

        public StorageLogAppender​(java.nio.file.Path filePath)
                           throws java.io.IOException
        Throws:
        java.io.IOException
    • 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:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface VitamAutoCloseable