/****************************************************************************/
/* Copyright (c) 2000 MBARI                                                 */
/* MBARI Proprietary Information. All rights reserved.                      */
/****************************************************************************/
/* Summary  :                                                               */
/* Filename : EventLogServer.h                                              */
/* Author   :                                                               */
/* Project  :                                                               */
/* Version  : 1.0                                                           */
/* Created  : 02/07/2000                                                    */
/* Modified :                                                               */
/* Archived :                                                               */
/****************************************************************************/
/* Modification History:                                                    */
/****************************************************************************/
#ifndef _EVENTLOGSERVER_H
#define _EVENTLOGSERVER_H

#include "EventLogIF_SK.h"

class EventLogServer : public EventLogIF_SK {

public:

  EventLogServer(const char *fileName, Boolean append = True);

  ~EventLogServer();

protected:

  virtual long write(EventLogIF::Level level, EventLogIF::Message message);

  int openFile(Boolean append = True);

  int closeFile();

  const char *fileName();

  virtual int spawnAuxTasks();

private:

  FILE *_fp;
  const char *_logFileName;
};


#endif
