Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: include/AdblockPlus/LogSystem.h

Issue 29498576: Issue 4832 - remove API allowing changing of LogSystem after Initialization of JsEngine (Closed) Base URL: https://github.com/adblockplus/libadblockplus.git
Patch Set: address comment Created July 26, 2017, 4:48 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « include/AdblockPlus/JsEngine.h ('k') | src/ConsoleJsObject.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « include/AdblockPlus/JsEngine.h ('k') | src/ConsoleJsObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld