1
// Copyright 2012 Google Inc.
3
// Licensed under the Apache License, Version 2.0 (the "License");
4
// you may not use this file except in compliance with the License.
5
// You may obtain a copy of the License at
7
// http://www.apache.org/licenses/LICENSE-2.0
9
// Unless required by applicable law or agreed to in writing, software
10
// distributed under the License is distributed on an "AS IS" BASIS,
11
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
// See the License for the specific language governing permissions and
13
// limitations under the License.
15
// Author: morlovich@google.com (Maksim Orlovich)
17
// Makes sure we include Apache's http_log.h without conflicting with
18
// Google LOG() macros, and with proper per-module logging support in
21
#ifndef NET_INSTAWEB_APACHE_APACHE_LOGGING_INCLUDES_H_
22
#define NET_INSTAWEB_APACHE_APACHE_LOGGING_INCLUDES_H_
24
// When HAVE_SYSLOG is defined, apache http_log.h will include syslog.h, which
25
// #defines LOG_* as numbers. This conflicts with definitions of the LOG(x)
26
// macros in Chromium base.
30
// Apache >= 2.4 expect us to use the APLOG_USE_MODULE macro in order to
31
// permit per-module log-level configuration.
32
#ifdef APLOG_USE_MODULE
34
APLOG_USE_MODULE(pagespeed);
38
#endif // NET_INSTAWEB_APACHE_APACHE_LOGGING_INCLUDES_H_