Log.pkg 732 B

123456789101112131415161718192021222324252627
  1. $#include "Log.h"
  2. static const int LOG_DEBUG;
  3. static const int LOG_INFO;
  4. static const int LOG_WARNING;
  5. static const int LOG_ERROR;
  6. static const int LOG_NONE;
  7. class Log : public Object
  8. {
  9. void Open(const String fileName);
  10. void SetLevel(int level);
  11. void SetTimeStamp(bool enable);
  12. void SetQuiet(bool quiet);
  13. int GetLevel() const;
  14. bool GetTimeStamp() const;
  15. String GetLastMessage() const;
  16. bool IsQuiet() const;
  17. static void Write(int level, const String message);
  18. static void WriteRaw(const String message, bool error = false);
  19. tolua_property__get_set int level;
  20. tolua_property__get_set bool timeStamp;
  21. tolua_property__is_set bool quiet;
  22. };