Skip to content

Commit 6db783c

Browse files
authored
Code formating (#77)
1 parent 9c2751c commit 6db783c

File tree

8 files changed

+1376
-1478
lines changed

8 files changed

+1376
-1478
lines changed

include/countly.hpp

Lines changed: 172 additions & 192 deletions
Large diffs are not rendered by default.

include/countly/logger_module.hpp

Lines changed: 26 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,36 @@
11
#ifndef LOGGER_MODULE_HPP_
22
#define LOGGER_MODULE_HPP_
3-
#include <string>
4-
#include <memory>
53
#include <functional>
4+
#include <memory>
5+
#include <string>
66

77
namespace cly {
8-
enum class LogLevel { DEBUG = 1, INFO = 2, WARNING = 3, ERROR = 4, FATAL = 5 };
9-
using LoggerFunction = std::function<void(LogLevel, const std::string&)>;
8+
enum class LogLevel { DEBUG = 1, INFO = 2, WARNING = 3, ERROR = 4, FATAL = 5 };
9+
using LoggerFunction = std::function<void(LogLevel, const std::string &)>;
1010

11-
class LoggerModule {
12-
public:
13-
LoggerModule();
14-
~LoggerModule();
11+
class LoggerModule {
12+
public:
13+
LoggerModule();
14+
~LoggerModule();
1515

16-
/**
17-
* Set custom logger function.
18-
*
19-
* @param logger pointer to function.
20-
*/
21-
void setLogger(LoggerFunction logger);
16+
/**
17+
* Set custom logger function.
18+
*
19+
* @param logger pointer to function.
20+
*/
21+
void setLogger(LoggerFunction logger);
2222

23-
/**
24-
* Print important information.
25-
*
26-
* @param level importance and urgency of the message.
27-
* @param message description of log.
28-
*/
29-
void log(LogLevel level, const std::string& message);
23+
/**
24+
* Print important information.
25+
*
26+
* @param level importance and urgency of the message.
27+
* @param message description of log.
28+
*/
29+
void log(LogLevel level, const std::string &message);
3030

31-
private:
32-
class LoggerModuleImpl;
33-
std::unique_ptr<LoggerModuleImpl> impl;
34-
};
35-
}
31+
private:
32+
class LoggerModuleImpl;
33+
std::unique_ptr<LoggerModuleImpl> impl;
34+
};
35+
} // namespace cly
3636
#endif
37-

0 commit comments

Comments
 (0)