Log.pkg 751 B

12345678910111213141516171819202122232425262728
  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 Close();
  11. void SetLevel(int level);
  12. void SetTimeStamp(bool enable);
  13. void SetQuiet(bool quiet);
  14. int GetLevel() const;
  15. bool GetTimeStamp() const;
  16. String GetLastMessage() const;
  17. bool IsQuiet() const;
  18. static void Write(int level, const String message);
  19. static void WriteRaw(const String message, bool error = false);
  20. tolua_property__get_set int level;
  21. tolua_property__get_set bool timeStamp;
  22. tolua_property__is_set bool quiet;
  23. };