// ****************************************************************** // * * // * Constructors * // * * // ****************************************************************** /// <summary> /// Constructor /// </summary> public LogStreamerFile() { // Set members to default m_logCount = 0; m_messageCount = 0; m_initArgs = null; m_writer = null; }
// ****************************************************************** // * * // * ILogStreamer Interface * // * * // ****************************************************************** /// <summary> /// Initializes the streamer /// </summary> /// <param name="args"> /// A LogStreamerInitArgs instance that holds all the required information to /// initialize the streamer instance. /// </param> public override void Init(LogStreamerInitArgs args) { // Store arguments into members and reset counters m_initArgs = args; m_logCount = 0; m_messageCount = 0; // Reset writer (if any) Close(); }