Save imported image in the same format (WIP)
[master-thesis.git] / Parasitemia / Logger / Interfaces.fs
1 namespace Logger
2
3 open System
4
5 open Logger.Types
6
7 /// <summary>
8 /// Interface for log listeners
9 /// </summary>
10 type IListener =
11 abstract NewEntry : severity : Severity -> header : string -> message : string -> unit
12
13 type internal IWriter =
14 inherit IDisposable
15
16 abstract DebugLoggingEnabled : bool with get, set
17 abstract AvoidRepeatingIdenticalMessages : bool with get, set
18 abstract LogDir : string
19 abstract MaxSizeFile : int64 with get, set
20 abstract LogFiles : string seq
21 abstract Write : message:Message -> unit
22 abstract Flush : unit -> unit
23 abstract ClearLogFilesOlderThan : TimeSpan -> unit