PageRenderTime 53ms CodeModel.GetById 48ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/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
 6#ifndef AWS_HTTP_API_LOGGER_H
 7#define AWS_HTTP_API_LOGGER_H
 8
 9#ifndef ESF_LOGGER_H
10#include <ESFLogger.h>
11#endif
12
13class AWSHttpApiLogger : public ESFLogger
14{
15public:
16
17    AWSHttpApiLogger(ESFLogger::Severity severity, aws_http_logger loggerCallback, void *loggerContext);
18
19    virtual ~AWSHttpApiLogger();
20
21    virtual bool isLoggable(ESFLogger::Severity severity);
22
23    virtual void setSeverity(ESFLogger::Severity severity);
24
25    virtual ESFError log(ESFLogger::Severity severity, const char *file, int line, const char *format, ... );
26
27private:
28
29    // Disabled
30    AWSHttpApiLogger(const AWSHttpApiLogger &logger);
31    void operator(const AWSHttpApiLogger &logger);
32
33    ESFLogger::Severity _severity;
34    aws_http_logger _loggerCallback;
35    void *_loggerContext;
36};
37
38#endif