Home
last modified time | relevance | path

Searched refs:logging (Results 1 – 25 of 65) sorted by relevance

123

/system/connectivity/shill/test-scripts/
Dconnect-disconnect20 import logging
21 import logging.handlers
34 syslog_handler = logging.handlers.SysLogHandler(address='/dev/log')
35 formatter = logging.Formatter('%(pathname)s: %(message)s')
38 logging.getLogger().addHandler(syslog_handler)
39 logging.getLogger().addHandler(logging.StreamHandler())
46 logging.error('Could not find service %s' % service_name)
67 logging.error('Failure at iteration %d: Connect:%-6s '
73 logging.error('Unexpected DBus exception: %s' % e)
121 logging.warning(message)
[all …]
/system/extras/perfprofd/quipper/base/
Dlogging.h114 namespace logging {
144 logging::ClassName(__FILE__, __LINE__, logging::LOG_INFO , ##__VA_ARGS__)
146 logging::ClassName(__FILE__, __LINE__, logging::LOG_WARNING , ##__VA_ARGS__)
148 logging::ClassName(__FILE__, __LINE__, logging::LOG_ERROR , ##__VA_ARGS__)
150 logging::ClassName(__FILE__, __LINE__, logging::LOG_FATAL , ##__VA_ARGS__)
152 logging::ClassName(__FILE__, __LINE__, logging::LOG_DFATAL , ##__VA_ARGS__)
169 ((::logging::LOG_ ## severity) >= ::logging::GetMinLogLevel())
176 !(condition) ? (void) 0 : ::logging::LogMessageVoidify() & (stream)
194 logging::LogMessage(__FILE__, __LINE__, -verbose_level).stream()
218 true ? (void) 0 : ::logging::LogMessageVoidify() & LOG_STREAM(FATAL)
[all …]
/system/connectivity/shill/mobile_operator_db/
Dserviceproviders_converter.py18 import logging
86 logging.info('Dumping parsed XML')
92 logging.info('Dumping transformed XML.')
120 logger = logging.info if result else logging.error
131 logging.warning('Following nodes were dropped:')
133 logging.info(self._PPrintXML(node).encode(FILE_ENCODING))
135 logging.info('######################')
136 logging.info('Conversion diagnostics')
137 logging.info('######################')
139 logging.info('Total number of XML CDMA nodes read [xml_cdma_nodes]: %d',
[all …]
/system/update_engine/
Dmain.cc81 logging::LoggingSettings log_settings; in SetupLogging()
82 log_settings.lock_log = logging::DONT_LOCK_LOG_FILE; in SetupLogging()
83 log_settings.delete_old = logging::APPEND_TO_OLD_LOG_FILE; in SetupLogging()
88 log_settings.logging_dest = logging::LOG_TO_SYSTEM_DEBUG_LOG; in SetupLogging()
92 log_settings.logging_dest = logging::LOG_TO_FILE; in SetupLogging()
95 logging::InitLogging(log_settings); in SetupLogging()
/system/sepolicy/tools/
Dinsertkeys.py6 import logging
129 logging.info("Skipping " + tag + " : " + option +
184 logging.info("Replacing " + name + " " + value + " with " + key)
247 logging.basicConfig(level=logging.INFO if options.verbose == True else logging.WARN)
256 logging.info("Setting output file to: " + options.output_file)
260 logging.info("Generate key map:")
262 logging.info(k + " : " + str(key_map[k]))
/system/connectivity/shill/
Djson_store_unittest.cc278 Log(logging::LOG_ERROR, _, in TEST_F()
292 Log(logging::LOG_ERROR, _, in TEST_F()
305 Log(logging::LOG_ERROR, _, in TEST_F()
318 Log(logging::LOG_ERROR, _, in TEST_F()
331 Log(logging::LOG_ERROR, _, in TEST_F()
345 Log(logging::LOG_ERROR, _, in TEST_F()
538 Log(logging::LOG_ERROR, _, in TEST_F()
547 Log(logging::LOG_ERROR, _, in TEST_F()
556 Log(logging::LOG_WARNING, _, HasSubstr("|description| is not a string"))); in TEST_F()
563 Log(logging::LOG_ERROR, _, in TEST_F()
[all …]
Dmock_log.cc32 previous_handler_ = ::logging::GetLogMessageHandler(); in ScopedMockLog()
33 ::logging::SetLogMessageHandler(HandleLogMessages); in ScopedMockLog()
38 ::logging::SetLogMessageHandler(previous_handler_); in ~ScopedMockLog()
Darp_packet_unittest.cc100 Log(logging::LOG_ERROR, _, in TEST_F()
111 Log(logging::LOG_ERROR, _, in TEST_F()
122 Log(logging::LOG_ERROR, _, in TEST_F()
133 Log(logging::LOG_ERROR, _, in TEST_F()
144 Log(logging::LOG_ERROR, _, in TEST_F()
155 Log(logging::LOG_ERROR, _, in TEST_F()
167 Log(logging::LOG_ERROR, _, in TEST_F()
228 Log(logging::LOG_ERROR, _, in TEST_F()
243 Log(logging::LOG_ERROR, _, in TEST_F()
255 Log(logging::LOG_ERROR, _, in TEST_F()
Dlogging.h49 ::logging::LogMessage(__FILE__, __LINE__, -verbose_level).stream()
71 ::logging::ErrnoLogMessage(__FILE__, __LINE__, -verbose_level, \
72 ::logging::GetLastSystemErrorCode()).stream()
Darp_client_unittest.cc158 Log(logging::LOG_ERROR, _, in TEST_F()
169 Log(logging::LOG_ERROR, _, in TEST_F()
180 Log(logging::LOG_ERROR, _, in TEST_F()
192 Log(logging::LOG_ERROR, _, in TEST_F()
229 Log(logging::LOG_ERROR, _, in TEST_F()
235 Log(logging::LOG_ERROR, _, in TEST_F()
283 Log(logging::LOG_ERROR, _, in TEST_F()
286 Log(logging::LOG_ERROR, _, in TEST_F()
Deap_listener_unittest.cc143 Log(logging::LOG_ERROR, _, in TEST_F()
154 Log(logging::LOG_ERROR, _, in TEST_F()
165 Log(logging::LOG_ERROR, _, in TEST_F()
205 Log(logging::LOG_ERROR, _, in TEST_F()
229 Log(logging::LOG_INFO, _, in TEST_F()
248 Log(logging::LOG_INFO, _, in TEST_F()
Dlogging.cc41 level < logging::LOG_NUM_SEVERITIES) { in SetLogLevelFromCommandLine()
42 logging::SetMinLogLevel(level); in SetLogLevelFromCommandLine()
Dmock_log_unittest.cc61 EXPECT_CALL(log, Log(logging::LOG_INFO, _, kMessage)); in TEST_F()
68 EXPECT_CALL(log, Log(logging::LOG_INFO, in TEST_F()
106 EXPECT_CALL(log, Log(::testing::Lt(::logging::LOG_ERROR), in TEST_F()
Dicmp_unittest.cc111 Log(logging::LOG_ERROR, _, in TEST_F()
123 Log(logging::LOG_ERROR, _, in TEST_F()
190 Log(logging::LOG_ERROR, _, in TEST_F()
193 Log(logging::LOG_ERROR, _, in TEST_F()
/system/tpm/tpm_manager/
Dtpm_manager_testrunner.cc27 logging::SetMinLogLevel(logging::LOG_VERBOSE); in main()
/system/tpm/attestation/
Dattestation_testrunner.cc27 logging::SetMinLogLevel(logging::LOG_VERBOSE); in main()
/system/tpm/trunks/
Dtrunks_testrunner.cc27 logging::SetMinLogLevel(logging::LOG_VERBOSE); in main()
/system/bt/service/test/
Dmain.cpp30 logging::LoggingSettings log_settings; in main()
31 logging::InitLogging(log_settings); in main()
/system/connectivity/shill/supplicant/
Dwpa_supplicant_unittest.cc43 EXPECT_CALL(log, Log(logging::LOG_ERROR, _, EndsWith("no depth parameter."))); in TEST_F()
57 Log(logging::LOG_ERROR, _, EndsWith("no subject parameter."))); in TEST_F()
71 EXPECT_CALL(log, Log(logging::LOG_ERROR, _, EndsWith("no depth parameter."))); in TEST_F()
Dsupplicant_eap_state_handler_unittest.cc39 EXPECT_CALL(log_, Log(logging::LOG_INFO, _, in StartEAP()
68 EXPECT_CALL(log_, Log(logging::LOG_INFO, _, in TEST_F()
141 EXPECT_CALL(log_, Log(logging::LOG_ERROR, _, EndsWith( in TEST_F()
157 EXPECT_CALL(log_, Log(logging::LOG_ERROR, _, EndsWith( in TEST_F()
/system/nativepower/daemon/
Dmain.cc63 logging::InitLogging(logging::LoggingSettings()); in main()
/system/bt/service/
Dmain.cpp47 logging::LoggingSettings log_settings; in main()
48 if (!logging::InitLogging(log_settings)) { in main()
/system/nativepower/example/
Dpower_example.cc44 logging::InitLogging(logging::LoggingSettings()); in main()
/system/core/init/
Dperfboot.py45 import logging
130 logging.info('Current CPU temperature %s' % temp)
217 logging.warning('dm-verity is not enabled for /%s. Did you run '
257 logging.warning('Unknown tag \'%s\'. Ignoring...', tag)
319 logging.error('Invalid record found: ' + line.getvalue())
430 logging.getLogger().setLevel(logging.INFO)
/system/core/base/
Dlogging_test.cpp96 TEST(logging, CHECK) { in TEST() argument
133 TEST(logging, LOG) { in TEST() argument
243 TEST(logging, PLOG) { in TEST() argument
262 TEST(logging, UNIMPLEMENTED) { in TEST() argument

123