| /third_party/rust/crates/log/src/ |
| D | lib.rs | 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 //! 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 …]
|
| D | macros.rs | 1 // 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/ |
| D | logging.c | 2 * 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/node/deps/npm/node_modules/npmlog/lib/ |
| D | log.js | 2 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', { 25 // by default, decide based on tty-ness. 27 log.useColor = function () { 31 log.enableColor = function () { 35 log.disableColor = function () { 40 // default level [all …]
|
| /third_party/rust/crates/env_logger/ |
| D | README.md | 5 [](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/node/deps/npm/lib/utils/ |
| D | display.js | 3 const log = require('./log-shim.js') constant 4 const { explain } = require('./explain-eresolve.js') 9 // https://eslint.org/docs/latest/rules/no-control-regex 10 /* eslint-disable no-control-regex */ 12 const hasC01 = /[\x00-\x08\x0c\x0e-\x1f\x7f-\x9f]/ 14 const allowedSGR = /^\[[0-9;]{0,8}m/ 38 result = `${result}^${String.fromCharCode(code - 64)}` 50 log.pause() 105 process.on('log', this.#logHandler) 109 process.off('log', this.#logHandler) [all …]
|
| /third_party/jerryscript/jerry-port/default/ |
| D | default-io.c | 7 * 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/python/Doc/howto/ |
| D | logging-cookbook.rst | 1 .. _logging-cookbook: 7 :Author: Vinay Sajip <vinay_sajip at red-dove dot com> 11 :ref:`cookbook-ref-links`. 16 --------------------------------- 33 fh = logging.FileHandler('spam.log') 35 # create console handler with a higher log level 39 formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s') 78 .. code-block:: none 80 2005-03-23 23:47:11,663 - spam_application - INFO - 82 2005-03-23 23:47:11,665 - spam_application.auxiliary.Auxiliary - INFO - [all …]
|
| D | logging.rst | 5 :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/mesa3d/include/android_stub/android/ |
| D | log.h | 8 * 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/log/tests/ |
| D | macros.rs | 3 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 …]
|
| D | filters.rs | 5 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/rust/crates/env_logger/src/filter/ |
| D | mod.rs | 1 //! 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/rust/crates/env_logger/src/ |
| D | lib.rs | 1 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or 2 // https://www.apache.org/licenses/LICENSE-2.0> or the MIT license 3 // <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your 8 //! with the logging facade exposed by the [`log` crate][log-crate-url]. 11 //! other means besides environment variables. See [the examples][gh-repo-examples] 20 //! use log::{debug, error, log_enabled, info, Level}; 27 //! if log_enabled!(Level::Info) { 37 //! [2017-11-09T02:12:24Z ERROR main] this is printed by default 42 //! [2017-11-09T02:12:24Z ERROR main] this is printed by default 43 //! [2017-11-09T02:12:24Z INFO main] the answer was: 12 [all …]
|
| /third_party/libwebsockets/READMEs/ |
| D | README.logging.md | 12 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/python/Lib/logging/ |
| D | __init__.py | 1 # Copyright 2001-2019 by Vinay Sajip. All Rights Reserved. 21 Copyright (C) 2001-2019 Vinay Sajip. All Rights Reserved. 23 To use, simply 'import logging' and log away! 39 'info', 'log', 'makeLogRecord', 'setLoggerClass', 'shutdown', 45 __author__ = "Vinay Sajip <vinay_sajip@red-dove.com>" 51 #--------------------------------------------------------------------------- 53 #--------------------------------------------------------------------------- 67 # If you don't want threading information in the log, set this to zero 72 # If you don't want multiprocessing information in the log, set this to zero 77 # If you don't want process information in the log, set this to zero [all …]
|
| /third_party/rust/crates/log/test_max_level_features/ |
| D | main.rs | 2 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 …]
|
| /third_party/libfuse/include/ |
| D | fuse_log.h | 24 * 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/node/deps/npm/node_modules/@npmcli/arborist/bin/lib/ |
| D | logging.js | 1 const log = require('proc-log') constant 9 // add a meta method to proc-log for passing optional 10 // metadata through to log handlers 13 const { [META]: isMeta } = args[args.length - 1] || {} 15 ? [args[args.length - 1], ...args.slice(0, args.length - 1)] 18 log.meta = (meta = {}) => ({ [META]: true, ...meta }) 29 ].map((level, index) => [level, index])) 38 const formatter = (level, ...args) => { argument 39 const depth = level === 'error' && args[0] && args[0].code === 'ERESOLVE' ? Infinity : 10 41 if (level === 'info' && args[0] === 'timeEnd') { [all …]
|
| /third_party/rust/crates/clap/examples/ |
| D | typed-derive.md | 5 $ typed-derive --help 6 Usage: typed-derive[EXE] [OPTIONS] 9 -O <OPTIMIZATION> Implicitly using `std::str::FromStr` 10 -I <DIR> Allow invalid UTF-8 paths 11 --bind <BIND> Handle IP addresses 12 --sleep <SLEEP> Allow human-readable durations 13 -D <DEFINES> Hand-written parser for tuples 14 --port <PORT> Support for discrete numbers [default: 22] [possible values: 22, 80] 15 …--log-level <LOG_LEVEL> Support enums from a foreign crate that don't implement `ValueEnum` [defa… 16 -h, --help Print help [all …]
|
| /third_party/node/deps/npm/test/fixtures/ |
| D | mock-logs.js | 3 const { LEVELS } = require('proc-log') 6 const npmLog = NPMLOG.log.bind(NPMLOG) 11 // Return mocks as an array with getters for each level 13 // level removed. This is for convenience throughout tests 16 ['timing', ...LEVELS].reduce((acc, level) => { 17 acc[level] = { 20 .filter(([l]) => level === l) 28 // the above logs array is anything logged and it not filtered by level. 33 ['timing', ...LEVELS].reduce((acc, level) => { 34 acc[level] = { [all …]
|
| /third_party/ffmpeg/libavutil/ |
| D | log.h | 18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 129 * Return next AVOptions-enabled child or NULL 134 * Iterate over the AVClasses corresponding to potential AVOptions-enabled 139 * @return AVClass for the next AVOptions-enabled child or NULL if there are 162 #define AV_LOG_QUIET -8 184 * lead to problems. An example would be the use of '-vstrict -2'. 208 #define AV_LOG_MAX_OFFSET (AV_LOG_TRACE - AV_LOG_QUIET) 225 * Send the specified message to the log if the level is less than or equal 232 * pointer to an AVClass struct or NULL if general log. 233 * @param level The importance level of the message expressed using a @ref [all …]
|
| /third_party/rust/crates/env_logger/src/fmt/ |
| D | mod.rs | 1 //! Formatting for log records. 3 //! This module contains a [`Formatter`] that can be used to format log records 8 //! # Formatting log records 10 //! The format used to print log records can be customised using the [`Builder::format`] 22 //! record.level(), 30 //! [`Write`]: https://doc.rust-lang.org/stable/std/io/trait.Write.html 38 use log::Record; 71 fn default() -> Self { in default() 78 /// `Formatter` implements the standard [`Write`] trait for writing log records. 83 /// Use the [`writeln`] macro to format a log record. [all …]
|
| /third_party/node/deps/npm/node_modules/color-support/ |
| D | README.md | 1 # color-support 3 A module which will endeavor to guess your terminal's level of color 6 …-ci.org/isaacs/color-support.svg?branch=master)](https://travis-ci.org/isaacs/color-support) [![Co… 8 This is similar to `supports-color`, but it does not read 23 7. Handle continuous-integration servers. If `CI` or 30 - `iTerm.app` version 3.x supports 16m colors, below support 256 31 - `MacTerm` supports 16m colors 32 - `Apple_Terminal` supports 256 colors 33 - Have more things that belong on this list? Send a PR! 36 `xterm-256color` will get 256 colors. Any screen, xterm, vt100, [all …]
|
| /third_party/musl/porting/linux/user/src/hilog/ |
| D | hilog_adapter.c | 7 * http://www.apache.org/licenses/LICENSE-2.0 47 const int INVALID_SOCKET = -1; 53 static const char *param_name = "musl.log.enable"; 54 static const char *g_logLevelParam = "musl.log.level"; 72 if (g_socketFd == INVALID_SOCKET || fcntl(g_socketFd, F_GETFL) == -1) { in GetSocketFdInstance() 74 if (g_socketFd == INVALID_SOCKET || fcntl(g_socketFd, F_GETFL) == -1) { in GetSocketFdInstance() 110 header->tv_sec = (uint32_t)(ts.tv_sec); in SendMessage() 111 header->tv_nsec = (uint32_t)(ts.tv_nsec); in SendMessage() 112 header->mono_sec = (uint32_t)(ts_mono.tv_sec); in SendMessage() 113 header->len = sizeof(HilogMsg) + tagLen + fmtLen; in SendMessage() [all …]
|