Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit47e8f86

Browse files
committed
Added missing copyright informations (klaim)
1 parentfe870cb commit47e8f86

File tree

4 files changed

+25
-3
lines changed

4 files changed

+25
-3
lines changed

‎include/network/detail/debug.hpp‎

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
// (c) Copyright 2011 Dean Michael Berris.
55
// Copyright 2012 Google, Inc.
6+
// Copyright 2012 A. Joel Lamotte
67
// Distributed under the Boost Software License, Version 1.0.
78
// (See accompanying file LICENSE_1_0.txt or copy at
89
// http://www.boost.org/LICENSE_1_0.txt)
@@ -11,16 +12,26 @@
1112
print out network-related errors through standard error. This is only
1213
useful when NETWORK_DEBUG is turned on. Otherwise the macro amounts to a
1314
no-op.
15+
The user can force the logging to be enabled by defining NETWORK_ENABLE_LOG.
1416
*/
15-
#ifdef NETWORK_DEBUG
16-
#include<iostream>
17+
#if defined(NETWORK_DEBUG) && !defined(NETWORK_ENABLE_LOGGING)
18+
#defineNETWORK_ENABLE_LOGGING
19+
#endif
20+
21+
#ifdef NETWORK_ENABLE_LOGGING
22+
23+
#include<network/logging/logging.hpp>
1724
#ifndef NETWORK_MESSAGE
18-
#defineNETWORK_MESSAGE(msg)std::cerr <<"[DEBUG" << __FILE__ <<':' << __LINE__ <<"]:" << msg << std::endl;
25+
#defineNETWORK_MESSAGE(msg)network::logging::log_record() <<"[network" << __FILE__ <<':' << __LINE__ <<"]:" << msg;
1926
#endif
27+
2028
#else
29+
2130
#ifndef NETWORK_MESSAGE
2231
#defineNETWORK_MESSAGE(msg)
2332
#endif
33+
2434
#endif
2535

36+
2637
#endif/* end of include guard: NETWORK_DEBUG_HPP_20110410*/

‎include/network/logging/logging.hpp‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
// Copyright 2011 A. Joel Lamotte <mjklaim@gmail.com>.
2+
// Distributed under the Boost Software License, Version 1.0.
3+
// (See accompanying file LICENSE_1_0.txt or copy at
4+
// http://www.boost.org/LICENSE_1_0.txt)
5+
16
#ifndef NETWORK_LOGGING_HPP_20121112
27
#defineNETWORK_LOGGING_HPP_20121112
38

‎libs/network/src/CMakeLists.txt‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Copyright (c) Glyn Matthews 2011, 2012.
22
# Copyright 2011 Dean Michael Berris (dberris@google.com)
3+
# Copyright 2012 A. Joel Lamotte (mjklaim@gmail.com)
34
# Copyright 2011 Google, Inc.
45
# Distributed under the Boost Software License, Version 1.0.
56
# (See accompanying file LICENSE_1_0.txt or copy at

‎libs/network/src/logging/logging.cpp‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
// Copyright 2011 A. Joel Lamotte <mjklaim@gmail.com>.
2+
// Distributed under the Boost Software License, Version 1.0.
3+
// (See accompanying file LICENSE_1_0.txt or copy at
4+
// http://www.boost.org/LICENSE_1_0.txt)
5+
16
#ifdef NETWORK_NO_LIB
27
#undef NETWORK_NO_LIB
38
#endif

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp