ax_sys_log.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /**********************************************************************************
  2. *
  3. * Copyright (c) 2019-2020 Beijing AXera Technology Co., Ltd. All Rights Reserved.
  4. *
  5. * This source file is the property of Beijing AXera Technology Co., Ltd. and
  6. * may not be copied or distributed in any isomorphic form without the prior
  7. * written consent of Beijing AXera Technology Co., Ltd.
  8. *
  9. **********************************************************************************/
  10. #ifndef _AX_SYS_LOG_H_
  11. #define _AX_SYS_LOG_H_
  12. #include <axsyslog.h>
  13. #include "ax_base_type.h"
  14. #include "ax_global_type.h"
  15. #ifdef __cplusplus
  16. extern "C"
  17. {
  18. #endif
  19. /*
  20. LOG_EMERG system is unusable
  21. LOG_ALERT action must be taken immediately
  22. LOG_CRIT critical conditions
  23. LOG_ERR error conditions
  24. LOG_WARNING warning conditions
  25. LOG_NOTICE normal, but significant, condition
  26. LOG_INFO informational message
  27. LOG_DEBUG debug-level message
  28. */
  29. AX_VOID AX_SYS_LogOpen();
  30. AX_VOID AX_SYS_LogClose();
  31. AX_VOID AX_SYS_LogPrint(AX_S32 level, AX_CHAR const *pFormat, ...);
  32. AX_VOID AX_SYS_LogOutput(AX_LOG_TARGET_E target, AX_LOG_LEVEL_E level, AX_CHAR const *format, va_list vlist);
  33. AX_VOID AX_SYS_LogPrint_Ex(AX_S32 level, AX_CHAR const *tag, int id, AX_CHAR const *pFormat, ...);
  34. AX_VOID AX_SYS_LogOutput_Ex(AX_LOG_TARGET_E target, AX_LOG_LEVEL_E level, AX_CHAR const *tag, int id, AX_CHAR const *format, va_list vlist);
  35. #ifdef __cplusplus
  36. }
  37. #endif
  38. #endif //_AX_SYS_LOG_H_