Yuri Wiitala | b797903 | 2019-11-08 15:17:20 -0800 | [diff] [blame^] | 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 "platform/api/logging.h" |
| 9 | |
| 10 | namespace openscreen { |
| 11 | namespace 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). |
| 17 | void SetLogFifoOrDie(const char* filename); |
| 18 | |
| 19 | // Set the global logging level. If this is never called, kWarning is the |
| 20 | // default. |
| 21 | void SetLogLevel(LogLevel level); |
| 22 | |
| 23 | } // namespace platform |
| 24 | } // namespace openscreen |
| 25 | |
| 26 | #endif // PLATFORM_IMPL_LOGGING_H_ |