• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // 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 "util/osp_logging.h"
9 
10 namespace openscreen {
11 
12 // Append logging output to a named FIFO having the given |filename|. If the
13 // file does not exist, an attempt is made to auto-create it. If unsuccessful,
14 // abort the program. If this is never called, logging continues to output to
15 // the default destination (stderr).
16 void SetLogFifoOrDie(const char* filename);
17 
18 // Set the global logging level. If this is never called, kWarning is the
19 // default.
20 void SetLogLevel(LogLevel level);
21 
22 // Returns the current global logging level.
23 LogLevel GetLogLevel();
24 
25 }  // namespace openscreen
26 
27 #endif  // PLATFORM_IMPL_LOGGING_H_
28