Interface IFileOperations
General approach for file operations. Currently used to implement file rolling options in FileRollingLogic<T>
Inherited Members
Namespace: Unity.Logging.Sinks
Assembly: Unity.Logging.dll
Syntax
public interface IFileOperations : IDisposable
Methods
Append(byte*, ulong, bool)
Update state on data that is appended and writes data into the file
Declaration
void Append(byte* data, ulong length, bool newLine)
Parameters
Type | Name | Description |
---|---|---|
byte* | data | Data to write |
ulong | length | Length of data to write |
bool | newLine | If true - newline is going to be added after the data |
Flush()
Flush any ongoing file operations
Declaration
void Flush()
OpenFileForLogging(ref Configuration)
Initializes state with file sink configuration
Declaration
bool OpenFileForLogging(ref FileSinkSystem.Configuration config)
Parameters
Type | Name | Description |
---|---|---|
FileSinkSystem.Configuration | config | Configuration to use |
Returns
Type | Description |
---|---|
bool | True if file stream was created successfully |