blob: 473478a120d6db579e7ab95eb9211dbc545b17b3 [file] [log] [blame]
Torne (Richard Coles)c2e0dbd2013-05-09 18:35:53 +01001// Copyright (c) 2013 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 CHROME_BROWSER_CHROMEOS_DRIVE_LOGGING_H_
6#define CHROME_BROWSER_CHROMEOS_DRIVE_LOGGING_H_
7
Torne (Richard Coles)c2e0dbd2013-05-09 18:35:53 +01008#include <vector>
9
Ben Murdocheb525c52013-07-10 11:40:50 +010010#include "chrome/browser/drive/event_logger.h"
Torne (Richard Coles)c2e0dbd2013-05-09 18:35:53 +010011
12namespace drive {
13// Originally wanted to use 'logging' here, but it conflicts with
14// base/logging.h, and breaks DCHECK() and friends.
15namespace util {
16
17// Logs a message using printf format.
18// This function can be called from any thread.
Torne (Richard Coles)a36e5922013-08-05 13:57:33 +010019void Log(
20 logging::LogSeverity severity, const char* format, ...) PRINTF_FORMAT(2, 3);
Torne (Richard Coles)c2e0dbd2013-05-09 18:35:53 +010021
22// Returns the log history.
23// This function can be called from any thread.
Ben Murdocheb525c52013-07-10 11:40:50 +010024std::vector<EventLogger::Event> GetLogHistory();
Torne (Richard Coles)c2e0dbd2013-05-09 18:35:53 +010025
26} // namespace util
27} // namespace drive
28
29#endif // CHROME_BROWSER_CHROMEOS_DRIVE_LOGGING_H_