2
* synergy -- mouse and keyboard sharing utility
3
* Copyright (C) 2002 Chris Schoeneman
5
* This package is free software; you can redistribute it and/or
6
* modify it under the terms of the GNU General Public License
7
* found in the file COPYING that should have accompanied this file.
9
* This package is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
18
#include "IInterface.h"
20
//! Interface for architecture dependent logging
22
This interface defines the logging operations required by
23
synergy. Each architecture must implement this interface.
25
class IArchLog : public IInterface {
29
The logging priority levels in order of highest to lowest priority.
32
kERROR, //!< For serious or fatal errors
33
kWARNING, //!< For minor errors and warnings
34
kNOTE, //!< For messages about notable events
35
kINFO, //!< For informational messages
36
kDEBUG //!< For debugging messages
39
//! @name manipulators
44
Opens the log for writing. The log must be opened before being
47
virtual void openLog(const char* name) = 0;
53
virtual void closeLog() = 0;
57
Writes the given string to the log with the given level.
59
virtual void writeLog(ELevel, const char*) = 0;