Home
last modified time | relevance | path

Searched refs:logger (Results 1 – 25 of 41) 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.cpp51 struct logger* logger = android_logger_open(logger_list, LOG_ID_SYSTEM); in read_with_wrap() local
52 EXPECT_NE(logger, nullptr); in read_with_wrap()
53 if (logger) { in read_with_wrap()
/system/logging/liblog/
Dlogd_reader.cpp148 int android_logger_clear(struct logger* logger) { in android_logger_clear() argument
149 if (!android_logger_is_logd(logger)) { in android_logger_clear()
152 uint32_t log_id = android_logger_get_id(logger); in android_logger_clear()
165 static long GetLogSize(struct logger* logger, LogSizeType type) { in GetLogSize() argument
166 if (!android_logger_is_logd(logger)) { in GetLogSize()
170 uint32_t log_id = android_logger_get_id(logger); in GetLogSize()
199 long android_logger_get_log_size(struct logger* logger) { in android_logger_get_log_size() argument
200 return GetLogSize(logger, LogSizeType::kAllotted); in android_logger_get_log_size()
203 long android_logger_get_log_readable_size(struct logger* logger) { in android_logger_get_log_readable_size() argument
204 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/logging/rust/
DAndroid.bp8 crate_name: "logger",
9 srcs: ["logger.rs"],
39 crate_name: "logger",
51 srcs: ["logger.rs"],
61 srcs: ["logger.rs"],
/system/libvintf/analyze_matrix/
Dhals_for_release.py46 logger = logging.getLogger(__name__) variable
82 logger.setLevel(logging.DEBUG)
99 logger.fatal("Unable to determine compatibility matrix dir, lunch or provide one explicitly.")
102 logger.debug("Using analyze_matrix at path: %s", args.analyze_matrix)
103 logger.debug("Dumping compatibility matrices at path: %s", args.input)
104 logger.debug("Show deprecated HALs? %s", args.deprecated)
105 logger.debug("Show unchanged HALs? %s", args.unchanged)
106 logger.debug("Show introduced HALs? %s", args.introduced)
107 logger.debug("Only showing packages %s", args.packages)
127 logger.warning("`%s` exits with code %d with the following error: %s", " ".join(command),
[all …]
/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/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!(logger::init(Default::default())); in default_init()
Denv_log_level.rs6 assert!(logger::init(Default::default())); in env_log_level()
/system/keymaster/include/keymaster/
Dlogger.h48 static void set_instance(Logger* logger) { instance_ = logger; } in set_instance() argument
/system/nfc/src/rust/test/
Dmain.rs20 use logger::{self, Config};
35 logger::init(Config::default().with_tag_on_device("lnfc").with_min_level(Level::Trace)); in main()
/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/update_engine/aosp/
Dlogging_android.cc219 for (auto&& logger : loggers_) { in operator ()()
220 logger(&formatted); in operator ()()
223 for (auto&& logger : loggers_) { in operator ()()
224 logger(log_message); in operator ()()
/system/security/prng_seeder/src/
Dmain.rs50 logger::init( in configure_logging()
51 logger::Config::default().with_tag_on_device("prng_seeder").with_min_level(Level::Info) in configure_logging()
/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.cpp948 auto logger = android_logger_open(logger_list.get(), static_cast<log_id_t>(i)); in Run() local
949 if (logger == nullptr) { in Run()
955 if (android_logger_clear(logger)) { in Run()
961 if (android_logger_set_log_size(logger, setLogSize)) { in Run()
967 long size = android_logger_get_log_size(logger); in Run()
968 long readable = android_logger_get_log_readable_size(logger); in Run()
969 long consumed = android_logger_get_log_consumed_size(logger); in Run()
/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/logging/liblog/include/android/
Dlog.h245 void __android_log_set_logger(__android_logger_function logger) __INTRODUCED_IN(30);

12