OLD | NEW |
1 /* | 1 /* |
2 * This file is part of Adblock Plus <https://adblockplus.org/>, | 2 * This file is part of Adblock Plus <https://adblockplus.org/>, |
3 * Copyright (C) 2006-2017 eyeo GmbH | 3 * Copyright (C) 2006-2017 eyeo GmbH |
4 * | 4 * |
5 * Adblock Plus is free software: you can redistribute it and/or modify | 5 * Adblock Plus is free software: you can redistribute it and/or modify |
6 * it under the terms of the GNU General Public License version 3 as | 6 * it under the terms of the GNU General Public License version 3 as |
7 * published by the Free Software Foundation. | 7 * published by the Free Software Foundation. |
8 * | 8 * |
9 * Adblock Plus is distributed in the hope that it will be useful, | 9 * Adblock Plus is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 30 matching lines...) Expand all Loading... |
41 * @param logLevel Log level. | 41 * @param logLevel Log level. |
42 * @param message Log message. | 42 * @param message Log message. |
43 * @param source Source of the message, e.g. file name and line. | 43 * @param source Source of the message, e.g. file name and line. |
44 * Ignored when empty. | 44 * Ignored when empty. |
45 */ | 45 */ |
46 virtual void operator()(LogLevel logLevel, const std::string& message, | 46 virtual void operator()(LogLevel logLevel, const std::string& message, |
47 const std::string& source) = 0; | 47 const std::string& source) = 0; |
48 }; | 48 }; |
49 | 49 |
50 /** | 50 /** |
51 * Shared smart pointer to a `LogSystem` instance. | 51 * Smart pointer to a `LogSystem` instance. |
52 */ | 52 */ |
53 typedef std::shared_ptr<LogSystem> LogSystemPtr; | 53 typedef std::unique_ptr<LogSystem> LogSystemPtr; |
54 } | 54 } |
55 | 55 |
56 #endif | 56 #endif |
OLD | NEW |