| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "third_party/mojo/src/mojo/public/cpp/environment/lib/default_logger.h" | 5 #include "mojo/public/cpp/environment/lib/default_logger.h" |
| 6 | 6 |
| 7 #include <stdio.h> | 7 #include <stdio.h> |
| 8 #include <stdlib.h> // For |abort()|. | 8 #include <stdlib.h> // For |abort()|. |
| 9 | 9 |
| 10 #include <algorithm> | 10 #include <algorithm> |
| 11 | 11 |
| 12 #include "third_party/mojo/src/mojo/public/c/environment/logger.h" | 12 #include "mojo/public/c/environment/logger.h" |
| 13 | 13 |
| 14 namespace mojo { | 14 namespace mojo { |
| 15 | 15 |
| 16 namespace { | 16 namespace { |
| 17 | 17 |
| 18 MojoLogLevel g_minimum_log_level = MOJO_LOG_LEVEL_INFO; | 18 MojoLogLevel g_minimum_log_level = MOJO_LOG_LEVEL_INFO; |
| 19 | 19 |
| 20 const char* GetLogLevelString(MojoLogLevel log_level) { | 20 const char* GetLogLevelString(MojoLogLevel log_level) { |
| 21 if (log_level <= MOJO_LOG_LEVEL_VERBOSE - 3) | 21 if (log_level <= MOJO_LOG_LEVEL_VERBOSE - 3) |
| 22 return "VERBOSE4+"; | 22 return "VERBOSE4+"; |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 | 68 |
| 69 namespace internal { | 69 namespace internal { |
| 70 | 70 |
| 71 const MojoLogger kDefaultLogger = {LogMessage, | 71 const MojoLogger kDefaultLogger = {LogMessage, |
| 72 GetMinimumLogLevel, | 72 GetMinimumLogLevel, |
| 73 SetMinimumLogLevel}; | 73 SetMinimumLogLevel}; |
| 74 | 74 |
| 75 } // namespace internal | 75 } // namespace internal |
| 76 | 76 |
| 77 } // namespace mojo | 77 } // namespace mojo |
| OLD | NEW |