Home
last modified time | relevance | path

Searched refs:logger (Results 1 – 25 of 36) sorted by relevance

12

/system/logging/liblog/include_vndk/log/
Dlog_read.h80 struct logger;
82 log_id_t android_logger_get_id(struct logger* logger);
85 int android_logger_clear(struct logger* logger);
87 long android_logger_get_log_size(struct logger* logger);
89 int android_logger_set_log_size(struct logger* logger, unsigned long size);
91 long android_logger_get_log_readable_size(struct logger* logger);
93 long android_logger_get_log_consumed_size(struct logger* logger);
95 int android_logger_get_log_version(struct logger* logger);
121 struct logger* android_logger_open(struct logger_list* logger_list, log_id_t id);
/system/logging/liblog/include/log/
Dlog_read.h80 struct logger;
82 log_id_t android_logger_get_id(struct logger* logger);
85 int android_logger_clear(struct logger* logger);
87 long android_logger_get_log_size(struct logger* logger);
89 int android_logger_set_log_size(struct logger* logger, unsigned long size);
91 long android_logger_get_log_readable_size(struct logger* logger);
93 long android_logger_get_log_consumed_size(struct logger* logger);
95 int android_logger_get_log_version(struct logger* logger);
121 struct logger* android_logger_open(struct logger_list* logger_list, log_id_t id);
/system/logging/liblog/tests/
Dlog_read_test.cpp46 struct logger* logger; in TEST() local
47 EXPECT_TRUE(NULL != (logger = android_logger_open(logger_list, id))); in TEST()
48 EXPECT_EQ(id, android_logger_get_id(logger)); in TEST()
49 ssize_t get_log_size = android_logger_get_log_size(logger); in TEST()
64 EXPECT_LE(0, android_logger_get_log_readable_size(logger)); in TEST()
68 EXPECT_GT(0, android_logger_get_log_readable_size(logger)); in TEST()
70 EXPECT_LE(0, android_logger_get_log_readable_size(logger)); in TEST()
Dlog_wrap_test.cpp53 struct logger* logger = android_logger_open(logger_list, LOG_ID_MAIN); in read_with_wrap() local
54 EXPECT_NE(logger, nullptr); in read_with_wrap()
55 if (logger) { in read_with_wrap()
/system/logging/liblog/
Dlogd_reader.cpp153 int android_logger_clear(struct logger* logger) { in android_logger_clear() argument
154 if (!android_logger_is_logd(logger)) { in android_logger_clear()
157 uint32_t log_id = android_logger_get_id(logger); in android_logger_clear()
170 static long GetLogSize(struct logger* logger, LogSizeType type) { in GetLogSize() argument
171 if (!android_logger_is_logd(logger)) { in GetLogSize()
175 uint32_t log_id = android_logger_get_id(logger); in GetLogSize()
204 long android_logger_get_log_size(struct logger* logger) { in android_logger_get_log_size() argument
205 return GetLogSize(logger, LogSizeType::kAllotted); in android_logger_get_log_size()
208 long android_logger_get_log_readable_size(struct logger* logger) { in android_logger_get_log_readable_size() argument
209 return GetLogSize(logger, LogSizeType::kReadable); in android_logger_get_log_readable_size()
[all …]
Dlogger_read.cpp36 log_id_t android_logger_get_id(struct logger* logger) { in android_logger_get_id() argument
37 return static_cast<log_id_t>(reinterpret_cast<uintptr_t>(logger) & LOGGER_LOG_ID_MASK); in android_logger_get_id()
64 struct logger* android_logger_open(struct logger_list* logger_list, log_id_t logId) { in android_logger_open()
71 uintptr_t logger = logId; in android_logger_open() local
72 logger |= (logger_list->mode & ANDROID_LOG_PSTORE) ? LOGGER_PMSG : LOGGER_LOGD; in android_logger_open()
73 return reinterpret_cast<struct logger*>(logger); in android_logger_open()
Dlogger.h47 inline bool android_logger_is_logd(struct logger* logger) { in android_logger_is_logd() argument
48 return reinterpret_cast<uintptr_t>(logger) & LOGGER_LOGD; in android_logger_is_logd()
DREADME.md63 log_id_t android_logger_get_id(struct logger *logger)
64 int android_logger_clear(struct logger *logger)
65 int android_logger_get_log_size(struct logger *logger)
66 int android_logger_get_log_readable_size(struct logger *logger)
67 int android_logger_get_log_version(struct logger *logger)
70 struct logger *android_logger_open(struct logger_list *logger_list, log_id_t id)
142 The `-ENOTCONN` return code indicates that the logger daemon is stopped.
155 the problem(s) worse and cause your application to temporarily drop to the logger daemon priority,
/system/libvintf/analyze_matrix/
Dhals_for_release.py41 logger = logging.getLogger(__name__) variable
75 logger.setLevel(logging.DEBUG)
92 logger.fatal("Unable to determine compatibility matrix dir, lunch or provide one explicitly.")
95 logger.debug("Using analyze_matrix at path: %s", args.analyze_matrix)
96 logger.debug("Dumping compatibility matrices at path: %s", args.input)
97 logger.debug("Show deprecated HALs? %s", args.deprecated)
98 logger.debug("Show unchanged HALs? %s", args.unchanged)
99 logger.debug("Show introduced HALs? %s", args.introduced)
100 logger.debug("Only showing packages %s", args.packages)
119 logger.warning("`%s` exits with code %d with the following error: %s", " ".join(command),
[all …]
/system/logging/rust/
DAndroid.bp8 crate_name: "logger",
9 srcs: ["logger.rs"],
33 crate_name: "logger",
45 srcs: ["logger.rs"],
55 srcs: ["logger.rs"],
/system/logging/rust/tests/
Dmultiple_init.rs3 let first_init = logger::init(Default::default()); in multiple_init()
4 let second_init = logger::init(Default::default()); in multiple_init()
Dconfig_log_level.rs8 let init_result = logger::init( in config_log_level()
9 logger::Config::default() in config_log_level()
Ddefault_init.rs3 assert_eq!(logger::init(Default::default()), true); in default_init()
Denv_log_level.rs6 assert_eq!(logger::init(Default::default()), true); in env_log_level()
/system/extras/simpleperf/scripts/
Dupdate.py80 def logger(): function
88 logger().debug('check_call `%s`', ' '.join(cmd))
97 logger().info('Fetching %s from %s %s (artifacts matching %s)', build,
108 logger().info('Creating branch %s', branch_name)
114 logger().info('Making commit')
126 logger().info('Removing old install directory "%s"', install_dir)
/system/bt/gd/rust/hal/src/
Dsnoop.rs142 let mut logger = SnoopLogger::new(config).await; in provide_snooped_hal() localVariable
150 logger.log(Type::Evt, Direction::Up, evt.to_bytes()).await; in provide_snooped_hal()
157 logger.log(Type::Cmd, Direction::Down, cmd.to_bytes()).await; in provide_snooped_hal()
164 logger.log(Type::Acl, Direction::Down, acl.to_bytes()).await; in provide_snooped_hal()
171 logger.log(Type::Acl, Direction::Up, acl.to_bytes()).await; in provide_snooped_hal()
178 logger.log(Type::Iso, Direction::Down, iso.to_bytes()).await; in provide_snooped_hal()
185 logger.log(Type::Iso, Direction::Up, iso.to_bytes()).await; in provide_snooped_hal()
/system/keymaster/include/keymaster/
Dlogger.h48 static void set_instance(Logger* logger) { instance_ = logger; } in set_instance() argument
/system/libbase/
Dlogging.cpp191 static auto& logger = *new LogFunction(LogdLogger()); in Logger() local
193 static auto& logger = *new LogFunction(StderrLogger); in Logger()
195 return logger; in Logger()
337 void InitLogging(char* argv[], LogFunction&& logger, AbortFunction&& aborter) { in InitLogging() argument
338 SetLogger(std::forward<LogFunction>(logger)); in InitLogging()
395 LogFunction SetLogger(LogFunction&& logger) { in SetLogger() argument
397 Logger() = std::move(logger); in SetLogger()
/system/security/keystore/tests/
DMakefile52 $(KEYMASTER)/logger.cpp \
76 $(KEYMASTER)/logger.o \
/system/apex/tools/
Dapex_compression_test.py29 logger = logging.getLogger(__name__) variable
69 logger.info(' Running: \'%s\'', ' '.join(args))
106 logger.info('%s', output.rstrip())
/system/logging/logcat/
Dlogcat.cpp963 auto logger = android_logger_open(logger_list.get(), static_cast<log_id_t>(i)); in Run() local
964 if (logger == nullptr) { in Run()
970 if (android_logger_clear(logger)) { in Run()
976 if (android_logger_set_log_size(logger, setLogSize)) { in Run()
982 long size = android_logger_get_log_size(logger); in Run()
983 long readable = android_logger_get_log_readable_size(logger); in Run()
984 long consumed = android_logger_get_log_consumed_size(logger); in Run()
/system/update_engine/aosp/
Dlogging_android.cc207 for (auto&& logger : loggers_) { in operator ()()
208 logger(log_message); in operator ()()
/system/logging/liblog/include/android/
Dlog.h245 void __android_log_set_logger(__android_logger_function logger) __INTRODUCED_IN(30);
/system/apex/tests/testdata/sharedlibs/build/
Dshared_libs_repack.py41 logger = logging.getLogger(__name__) variable
99 logger.info(' Running: \"%s\"', ' '.join(args))
126 logger.info('%s', output.rstrip())
/system/apex/apexer/
Dapexer_test.py32 logger = logging.getLogger(__name__) variable
70 logger.info(" Running: \"%s\"", " ".join(args))
105 logger.info("%s", output.rstrip())

12