blob: 56e3b919fe5093cd43140ce1ba5ecd3bf1fadaee [file] [log] [blame]
Yuri Wiitalab7979032019-11-08 15:17:20 -08001// Copyright 2019 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef PLATFORM_IMPL_LOGGING_H_
6#define PLATFORM_IMPL_LOGGING_H_
7
8#include "platform/api/logging.h"
9
10namespace openscreen {
11namespace platform {
12
13// Direct all logging output to a named FIFO having the given |filename|. If the
14// file does not exist, an attempt is made to auto-create it. If unsuccessful,
15// abort the program. If this is never called, logging continues to output to
16// the default destination (stderr).
17void SetLogFifoOrDie(const char* filename);
18
19// Set the global logging level. If this is never called, kWarning is the
20// default.
21void SetLogLevel(LogLevel level);
22
23} // namespace platform
24} // namespace openscreen
25
26#endif // PLATFORM_IMPL_LOGGING_H_