log_stdout.h 852 B

12345678910111213141516171819202122232425262728
  1. /* This work is licensed under a Creative Commons CCZero 1.0 Universal License.
  2. * See http://creativecommons.org/publicdomain/zero/1.0/ for more information.
  3. *
  4. * Copyright 2016, 2018 (c) Fraunhofer IOSB (Author: Julius Pfrommer)
  5. */
  6. #ifndef UA_LOG_STDOUT_H_
  7. #define UA_LOG_STDOUT_H_
  8. #include <open62541/plugin/log.h>
  9. _UA_BEGIN_DECLS
  10. extern UA_EXPORT const UA_Logger UA_Log_Stdout_; /* Logger structure */
  11. extern UA_EXPORT const UA_Logger *UA_Log_Stdout; /* Shorthand pointer */
  12. /* Don't use these definitions. They are only exported as long as the client
  13. * config is static and required compile-time */
  14. UA_EXPORT void
  15. UA_Log_Stdout_log(void *_, UA_LogLevel level, UA_LogCategory category,
  16. const char *msg, va_list args);
  17. UA_EXPORT void
  18. UA_Log_Stdout_clear(void *logContext);
  19. _UA_END_DECLS
  20. #endif /* UA_LOG_STDOUT_H_ */