Home
last modified time | relevance | path

Searched +full:- +full:- +full:log +full:- +full:level (Results 1 – 25 of 1033) sorted by relevance

12345678910>>...42

/third_party/node/deps/npm/node_modules/npmlog/
DREADME.md8 By default, logs are written to stderr. If you want to send log messages
9 to outputs other than streams, then you can change the `log.stream`
16 npm install npmlog --save
22 var log = require('npmlog')
24 // additional stuff ---------------------------+
25 // message ----------+ |
26 // prefix ----+ | |
27 // level -+ | | |
29 log.info('fyi', 'I have a kitty cat: %j', myKittyCat)
32 ## log.level
[all …]
Dlog.js2 var Progress = require('are-we-there-yet')
5 var log = exports = module.exports = new EE() variable
8 var setBlocking = require('set-blocking')
9 var consoleControl = require('console-control-strings')
13 Object.defineProperty(log, 'stream', {
23 // by default, decide based on tty-ness.
25 log.useColor = function () {
29 log.enableColor = function () {
33 log.disableColor = function () {
38 // default level
[all …]
/third_party/rust/crates/tracing/tracing-log/src/
Dlib.rs1 //! Adapters for connecting unstructured log records from the `log` crate into
6 //! [`tracing`] is a framework for instrumenting Rust programs with context-aware,
7 //! structured, event-based diagnostic information. This crate provides
9 //! by the [`log`] crate.
13 //! - [`AsTrace`] and [`AsLog`] traits for converting between `tracing` and `log` types.
14 //! - [`LogTracer`], a [`log::Log`] implementation that consumes [`log::Record`]s
16 //! - An [`env_logger`] module, with helpers for using the [`env_logger` crate]
17 //! with `tracing` (optional, enabled by the `env-logger` feature).
21 //! [msrv]: #supported-rust-versions
25 //! ## Convert log records to tracing `Event`s
[all …]
Dlog_tracer.rs1 //! An adapter for converting [`log`] records into `tracing` `Event`s.
3 //! This module provides the [`LogTracer`] type which implements `log`'s [logger
4 //! interface] by recording log records as `tracing` `Event`s. This is intended for
6 //! dependencies that emit [`log`] records within a trace context.
12 //! * [`init`] if you want to convert all logs, regardless of log level,
14 //! * [`init_with_filter`] to convert all logs up to a specified log level
18 //! log records][ignore] emitted by particular crates. This is useful in cases
19 //! such as when a crate emits both `tracing` diagnostics _and_ log records by
22 //! [logger interface]: log::Log
28 pub use log::SetLoggerError;
[all …]
Dinterest_cache.rs2 use log::{Level, Metadata};
13 min_verbosity: Level,
18 fn default() -> Self { in default()
20 min_verbosity: Level::Debug, in default()
27 fn disabled() -> Self { in disabled()
41 /// It should be set to the lowest verbosity level for which the majority
48 pub fn with_min_verbosity(mut self, level: Level) -> Self { in with_min_verbosity()
49 self.min_verbosity = level; in with_min_verbosity()
54 /// for `log` records.
58 /// memory usage per every thread which tries to log events.
[all …]
/third_party/rust/crates/log/src/
Dlib.rs2 // file at the top-level directory of this distribution and at
3 // http://rust-lang.org/COPYRIGHT.
5 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
13 //! The `log` crate provides a single logging API that abstracts over the
19 //! implementation that ignores all log messages. The overhead in this case
20 //! is very small - just an integer load, comparison and jump.
22 //! A log request consists of a _target_, a _level_, and a _body_. A target is a
23 //! string which defaults to the module path of the location of the log request,
[all …]
Dmacros.rs1 // Copyright 2014-2015 The Rust Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution and at
3 // http://rust-lang.org/COPYRIGHT.
5 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
13 /// This macro will generically log with the specified `Level` and `format!`
19 /// use log::{log, Level};
22 /// let data = (42, "Forty-two");
25 /// log!(Level::Error, "Received errors: {}, {}", data.0, data.1);
[all …]
/third_party/ntfs-3g/libntfs-3g/
Dlogging.c2 * logging.c - Centralised logging. Originated from the Linux-NTFS project.
5 * Copyright (c) 2005-2008 Szabolcs Szakacsits
6 * Copyright (c) 2010 Jean-Pierre Andre
19 * along with this program (in the main directory of the NTFS-3G
21 * Foundation,Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
66 * struct ntfs_logging - Control info for the logging system
99 * ntfs_log_get_levels - Get a list of the current logging levels
103 * Returns: Log levels in a 32-bit field
111 * ntfs_log_set_levels - Enable extra logging levels
112 * @levels: 32-bit field of log levels to set
[all …]
/third_party/flutter/flutter/packages/fuchsia_remote_debug_protocol/lib/src/common/
Dlogging.dart2 // Use of this source code is governed by a BSD-style license that can be
8 /// Determines the level of logging.
10 /// Verbosity is increasing from one (none) to five (fine). The sixth level
18 /// Severe means that the process has encountered a critical level of failure
45 typedef LoggingFunction = void Function(LogMessage log);
50 /// '[${log.levelName}]::${log.tag}--${log.time}: ${log.message}'
52 /// Exits with status code 1 if the `log` is [LoggingLevel.severe].
53 LoggingFunction defaultLoggingFunction = (LogMessage log) {
54 print('[${log.levelName}]::${log.tag}--${log.time}: ${log.message}');
55 if (log.level == LoggingLevel.severe) {
[all …]
/third_party/rust/crates/tracing/tracing/src/
Dlevel_filters.rs1 //! Trace verbosity level filtering.
6 //! features, similar to the [`log` crate]. Trace instrumentation at disabled
8 //! unless the verbosity level is specified dynamically. This level is
28 //! For example, a crate can disable trace level instrumentation in debug builds
29 //! and trace, debug, and info level instrumentation in release builds with the
38 //! Please note that `tracing`'s static max level features do *not* control the
39 //! [`log`] records that may be emitted when [`tracing`'s "log" feature flag][f] is
41 //! while still emitting `log` records --- such as when a library using
42 //! `tracing` is used by an application using `log` that doesn't want to
43 //! generate any `tracing`-related code, but does want to collect `log` records.
[all …]
Dlib.rs6 //! structured, event-based diagnostic information.
8 //! In asynchronous systems like Tokio, interpreting traditional log messages can
10 //! thread, associated events and log lines are intermixed making it difficult to
11 //! trace the logic flow. `tracing` expands upon logging-style diagnostics by
13 //! information about *temporality* and *causality* — unlike a log message, a span
24 //! [msrv]: #supported-rust-versions
33 //! concept of [spans]. Unlike a log line that represents a _moment in
42 //! use tracing::{span, Level};
44 //! let span = span!(Level::TRACE, "my_span");
55 //! <div class="example-wrap" style="display:inline-block"><pre class="compile_fail" style="white-s…
[all …]
/third_party/rust/crates/env_logger/
DREADME.md5 [![Documentation](https://img.shields.io/badge/docs-main-blue.svg)](https://env-logger-rs.github.io…
13 …ed in executables (binary projects). Libraries should use the [`log`](https://docs.rs/log) crate i…
17 It must be added along with `log` to the project dependencies:
21 log = "0.4.0"
25 …early as possible in the project. After it's initialized, you can use the `log` macros to do actua…
29 extern crate log;
41 environment variable that corresponds with the log messages you want to show.
45 [2018-11-03T06:09:06Z INFO default] starting up
48 The letter case is not significant for the logging level names; e.g., `debug`,
49 `DEBUG`, and `dEbuG` all represent the same logging level. Therefore, the
[all …]
/third_party/jerryscript/jerry-port/default/
Ddefault-io.c7 * http://www.apache.org/licenses/LICENSE-2.0
20 #include "jerryscript-port.h"
21 #include "jerryscript-port-default.h"
22 #include "jerryscript-debugger.h"
27 * Actual log level
34 * Get the log level
36 * @return current log level
49 * Set the log level
56 jerry_port_default_set_log_level (jerry_log_level_t level) /**< log level */ in jerry_port_default_set_log_level() argument
58 jerry_port_default_log_level = level; in jerry_port_default_set_log_level()
[all …]
/third_party/ltp/testcases/kernel/syscalls/syslog/
Dsyslog1016 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 # 12/05/02 Port to bash -Robbie Williamson <robbiew@us.ibm.com>
19 # 02/05/03 Modified - Manoj Iyer <manjo@mail.utexas.edu> use USCTEST macros
23 # with syslog-ng
29 # individual priority level. #
32 # o Send message which is below the priority level to #
36 . syslog-lib.sh || exit 1
46 echo "user.debug /var/log/messages" >> $CONFIG_FILE
49 /etc/syslog-ng/syslog-ng.conf)
50 …echo "source src{ internal(); unix-dgram(\"/dev/log\"); udp(ip(\"0.0.0.0\") port(514)); };" > $CON…
[all …]
Dsyslog0917 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 # 12/05/02 Port to bash -Robbie Williamson <robbiew@us.ibm.com>
20 # 02/05/03 Modified - Manoj Iyer <manjo@mail.utexas.edu> use USCTEST macros
24 # with syslog-ng
30 # priority level. #
35 . syslog-lib.sh || exit 1
45 echo "user.debug /var/log/messages" >> $CONFIG_FILE
48 /etc/syslog-ng/syslog-ng.conf)
49 …echo "source src{ internal(); unix-dgram(\"/dev/log\"); udp(ip(\"0.0.0.0\") port(514)); };" > $CON…
50 #echo "filter f_syslog_debug { level(debug) and facility(user); };" >> $CONFIG_FILE
[all …]
/third_party/rust/crates/log/tests/
Dmacros.rs3 extern crate log;
17 for lvl in log::Level::iter() { in no_args()
18 log!(lvl, "hello"); in no_args()
19 log!(lvl, "hello",); in no_args()
21 log!(target: "my_target", lvl, "hello"); in no_args()
22 log!(target: "my_target", lvl, "hello",); in no_args()
24 log!(lvl, "hello"); in no_args()
25 log!(lvl, "hello",); in no_args()
37 for lvl in log::Level::iter() { in anonymous_args()
38 log!(lvl, "hello {}", "world"); in anonymous_args()
[all …]
Dfilters.rs5 extern crate log;
7 use log::{Level, LevelFilter, Log, Metadata, Record};
11 use log::set_boxed_logger;
14 fn set_boxed_logger(logger: Box<dyn Log>) -> Result<(), log::SetLoggerError> { in set_boxed_logger()
15 log::set_logger(Box::leak(logger)) in set_boxed_logger()
19 last_log: Mutex<Option<Level>>,
24 impl Log for Logger {
25 fn enabled(&self, _: &Metadata) -> bool { in enabled()
29 fn log(&self, record: &Record) { in log() method
30 *self.0.last_log.lock().unwrap() = Some(record.level()); in log()
[all …]
/third_party/mesa3d/include/android_stub/android/
Dlog.h8 * http://www.apache.org/licenses/LICENSE-2.0
27 * Support routines to send messages to the Android log buffer,
30 * Each log message must have
31 * - a priority
32 * - a log tag
33 * - some text
35 * The tag normally corresponds to the component that emits the log message,
38 * Log message text may be truncated to less than an implementation-specific
42 * log message, if not already there. It is not possible to send several
47 * - Sending log messages eats CPU and slow down your application and the
[all …]
/third_party/rust/crates/tracing/tracing-log/tests/
Dlog_tracer.rs4 use tracing_core::{span, Event, Level, LevelFilter, Metadata, Subscriber};
15 level: Level, field
24 fn enabled(&self, meta: &Metadata<'_>) -> bool { in enabled()
29 fn max_level_hint(&self) -> Option<LevelFilter> { in max_level_hint()
30 Some(LevelFilter::from_level(Level::INFO)) in max_level_hint()
33 fn new_span(&self, _span: &Attributes<'_>) -> span::Id { in new_span()
48 level: *normalized.level(), in event()
70 log::info!("expected info log"); in normalized_metadata()
71 log::debug!("unexpected debug log"); in normalized_metadata()
72 let log = log::Record::builder() in normalized_metadata() localVariable
[all …]
/third_party/rust/crates/tracing/tracing-subscriber/tests/
Dfilter_log.rs1 #![cfg(all(feature = "env-filter", feature = "tracing-log"))]
3 use tracing::{self, Level};
9 log::trace!("this should be disabled"); in test_records()
10 log::info!("this shouldn't be"); in test_records()
11 log::debug!("this should be disabled"); in test_records()
12 log::warn!("this should be enabled"); in test_records()
13 log::warn!(target: "something else", "this shouldn't be enabled"); in test_records()
14 log::error!("this should be enabled too"); in test_records()
19 log::log_enabled!(log::Level::Info), in test_log_enabled()
23 !log::log_enabled!(log::Level::Debug), in test_log_enabled()
[all …]
/third_party/python/Doc/howto/
Dlogging.rst5 :Author: Vinay Sajip <vinay_sajip at red-dove dot com>
7 .. _logging-basic-tutorial:
12 ----------------------
19 developer ascribes to the event; the importance can also be called the *level*
30 +-------------------------------------+--------------------------------------+
36 +-------------------------------------+--------------------------------------+
41 +-------------------------------------+--------------------------------------+
51 +-------------------------------------+--------------------------------------+
54 +-------------------------------------+--------------------------------------+
57 | error handler in a long-running | :func:`logging.critical` as |
[all …]
/third_party/rust/crates/env_logger/src/filter/
Dmod.rs1 //! Filtering for log records.
3 //! This module contains the log filtering used by `env_logger` to match records.
13 //! logged based on the parsed filters when log records are received.
16 //! extern crate log;
19 //! use log::{Log, Metadata, Record};
26 //! fn new() -> MyLogger {
41 //! impl Log for MyLogger {
42 //! fn enabled(&self, metadata: &Metadata) -> bool {
46 //! fn log(&self, record: &Record) {
57 //! [Enabling Logging]: ../index.html#enabling-logging
[all …]
/third_party/libwebsockets/READMEs/
DREADME.logging.md12 or custom log emission is possible if you point it to your own.
14 Currently the following log levels are defined
17 |---|---|---|---|
31 The first four log levels are built into lws even on Release builds, the others
34 You can select between Debug and Release builds using cmake `-DCMAKE_BUILD_TYPE=`
38 see emitted, only log levels that were built in can be enabled since the code for them
41 ## Finegrained control of log level build
43 You can deviate from the default log inclusion for release / debug by overriding it
46 For example you can set `-DLWS_LOGGING_BITFIELD_SET="LLL_INFO|LLL_DEBUG"`, which will
47 cause those log level traces to be built in even in Release mode. Clear works
[all …]
/third_party/libfuse/include/
Dfuse_log.h24 * Log severity level
26 * These levels correspond to syslog(2) log levels since they are widely used.
40 * Log message handler function.
42 * This function must be thread-safe. It may be called from any libfuse
46 * Install a custom log message handler function using fuse_set_log_func().
48 * @param level log severity level
49 * @param fmt sprintf-style format string including newline
52 typedef void (*fuse_log_func_t)(enum fuse_log_level level,
56 * Install a custom log handler function.
58 * Log messages are emitted by libfuse functions to report errors and debug
[all …]
/third_party/rust/crates/log/test_max_level_features/
Dmain.rs2 extern crate log;
5 use log::{Level, LevelFilter, Log, Record, Metadata};
8 use log::set_boxed_logger;
10 fn set_boxed_logger(logger: Box<Log>) -> Result<(), log::SetLoggerError> { in set_boxed_logger()
11 log::set_logger(Box::leak(logger)) in set_boxed_logger()
15 last_log: Mutex<Option<Level>>,
20 impl Log for Logger {
21 fn enabled(&self, _: &Metadata) -> bool { in enabled()
25 fn log(&self, record: &Record) { in log() method
26 *self.0.last_log.lock().unwrap() = Some(record.level()); in log()
[all …]

12345678910>>...42