/http_server/stack/api/AWSHttpApiLogger.h

http://github.com/jtblatt/duderino · C Header · 38 lines · 21 code · 12 blank · 5 comment · 0 complexity · ee8e3abab0581e5f87cb32876ee52c21 MD5 · raw file

  1. /* Copyright (c) 2009 Yahoo! Inc. All rights reserved.
  2. * The copyrights embodied in the content of this file are licensed by Yahoo! Inc.
  3. * under the BSD (revised) open source license.
  4. */
  5. #ifndef AWS_HTTP_API_LOGGER_H
  6. #define AWS_HTTP_API_LOGGER_H
  7. #ifndef ESF_LOGGER_H
  8. #include <ESFLogger.h>
  9. #endif
  10. class AWSHttpApiLogger : public ESFLogger
  11. {
  12. public:
  13. AWSHttpApiLogger(ESFLogger::Severity severity, aws_http_logger loggerCallback, void *loggerContext);
  14. virtual ~AWSHttpApiLogger();
  15. virtual bool isLoggable(ESFLogger::Severity severity);
  16. virtual void setSeverity(ESFLogger::Severity severity);
  17. virtual ESFError log(ESFLogger::Severity severity, const char *file, int line, const char *format, ... );
  18. private:
  19. // Disabled
  20. AWSHttpApiLogger(const AWSHttpApiLogger &logger);
  21. void operator(const AWSHttpApiLogger &logger);
  22. ESFLogger::Severity _severity;
  23. aws_http_logger _loggerCallback;
  24. void *_loggerContext;
  25. };
  26. #endif