X-Git-Url: http://git.euphorik.ch/?p=master-thesis.git;a=blobdiff_plain;f=Parasitemia%2FLogger%2FInterfaces.fs;fp=Parasitemia%2FLogger%2FInterfaces.fs;h=668ae5427bc00c71fbd1189806c24bb1eb0f5799;hp=0000000000000000000000000000000000000000;hb=8cf2153bd18919de41745534d3dbf134f085e13c;hpb=6250f10c807301a760b8659f9c00ca6dbbd4c7b7 diff --git a/Parasitemia/Logger/Interfaces.fs b/Parasitemia/Logger/Interfaces.fs new file mode 100644 index 0000000..668ae54 --- /dev/null +++ b/Parasitemia/Logger/Interfaces.fs @@ -0,0 +1,23 @@ +namespace Logger + +open System + +open Logger.Types + +/// +/// Interface for log listeners +/// +type IListener = + abstract NewEntry : severity : Severity -> header : string -> message : string -> unit + +type internal IWriter = + inherit IDisposable + + abstract DebugLoggingEnabled : bool with get, set + abstract AvoidRepeatingIdenticalMessages : bool with get, set + abstract LogDir : string + abstract MaxSizeFile : int64 with get, set + abstract LogFiles : string seq + abstract Write : message:Message -> unit + abstract Flush : unit -> unit + abstract ClearLogFilesOlderThan : TimeSpan -> unit \ No newline at end of file