Home | History | Annotate | Download | only in common

Lines Matching refs:logging

40 #include "base/logging.h"
86 // Assertion handler for logging errors that occur when dialogs are
95 // Suppresses error/assertion dialogs and enables the logging of
101 logging::SetLogAssertHandler(SilentRuntimeAssertHandler);
118 namespace logging {
125 const logging::LoggingDestination kDefaultLoggingMode = logging::LOG_TO_FILE;
129 const logging::LoggingDestination kDefaultLoggingMode = logging::LOG_TO_ALL;
135 logging::LoggingDestination log_mode;
137 // Let --enable-logging=stderr force only stderr, particularly useful for
140 log_mode = logging::LOG_TO_SYSTEM_DEBUG_LOG;
144 log_mode = logging::LOG_NONE;
219 LOG(WARNING) << "NOT redirecting logging for multi-profiles case.";
224 "Attempted to redirect logging when it was already initialized.";
238 logging::LoggingSettings settings;
241 if (!logging::InitLogging(settings)) {
242 DLOG(ERROR) << "Unable to initialize logging to " << log_path.value();
254 "Attempted to initialize logging when it was already initialized.";
279 log_path, delete_old_log_file == logging::DELETE_OLD_LOG_FILE);
282 // the link, it shouldn't remove the old file in the logging code,
284 delete_old_log_file = logging::APPEND_TO_OLD_LOG_FILE;
290 logging::LoggingSettings settings;
295 bool success = logging::InitLogging(settings);
299 DPLOG(ERROR) << "Unable to initialize logging to " << log_path.value()
307 DPLOG(ERROR) << "Unable to initialize logging to " << log_path.value();
315 logging::SetShowErrorDialogs(true);
318 logging::SetLogItems(true, // enable_process_id
340 logging::SetMinLogLevel(level);
348 logging::LogEventProvider::Initialize(kChromeTraceProviderName);
358 return; // We failed to initiailize logging, no cleanup.
361 "Attempted to clean up logging when it wasn't initialized.";
433 } // namespace logging