You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
650 B

1 year ago
  1. #pragma once
  2. #include "core.h"
  3. #include <string>
  4. #ifndef VLC_LOGGING_MIN_LEVEL
  5. #define VLC_LOGGING_MIN_LEVEL 0
  6. #endif
  7. namespace vlc
  8. {
  9. namespace logging
  10. {
  11. enum class Severity : int32_t
  12. {
  13. Debug = 0,
  14. Information = 1,
  15. Warning = 2,
  16. Error = 3,
  17. All = 4,
  18. };
  19. using Printer = void(*)(void* userdata, Severity severity, const char* tag, const std::string& message);
  20. void VLC_LIBRARY_API enableSeverity(Severity severity, bool enable);
  21. bool VLC_LIBRARY_API isSeverityEnabled(Severity severity);
  22. void VLC_LIBRARY_API setPrinter(Printer printer, void* userdata = nullptr);
  23. Printer VLC_LIBRARY_API getDefaultPrinter();
  24. }
  25. }