BadScript 2
Loading...
Searching...
No Matches
BadStreamLogWriter.cs
Go to the documentation of this file.
2
6public abstract class BadStreamLogWriter : BadLogWriter
7{
11 private readonly StreamWriter m_Stream;
12
17 protected BadStreamLogWriter(Stream stream)
18 {
19 m_Stream = new StreamWriter(stream);
20 }
21
25 public override void Dispose()
26 {
27 base.Dispose();
28 m_Stream.Dispose();
29 }
30
31 protected override void Write(BadLog log)
32 {
33 m_Stream.WriteLine(log);
34 }
35}
Implements a simple stream writer for the log system.
BadStreamLogWriter(Stream stream)
Creates a new StreamLogWriter.
readonly StreamWriter m_Stream
The underlying streamwriter.
override void Dispose()
Implements the IDisposable interface.
Contains Writer Implementations for the BadScript Logging System.
Represents a Log Message.
Definition BadLog.cs:12