Searched full:logging (Results 1 – 25 of 7068) sorted by relevance
12345678910>>...283
17 """Test harness for the logging module. Run all tests.22 import logging23 import logging.handlers24 import logging.config73 """Base class for logging tests."""80 """Setup the default logging stream to an internal StringIO instance,84 logger_dict = logging.getLogger().manager.loggerDict85 logging._acquireLock()87 self.saved_handlers = logging._handlers.copy()88 self.saved_handler_list = logging._handlerList[:][all …]
4 Logging Cookbook9 This page contains a number of recipes related to logging, which have been found12 .. currentmodule:: logging14 Using logging in multiple modules17 Multiple calls to ``logging.getLogger('someLogger')`` return a reference to the25 import logging29 logger = logging.getLogger('spam_application')30 logger.setLevel(logging.DEBUG)32 fh = logging.FileHandler('spam.log')33 fh.setLevel(logging.DEBUG)[all …]
2 Logging HOWTO9 .. currentmodule:: logging11 Basic Logging Tutorial14 Logging is a means of tracking events that happen when some software runs. The15 software's developer adds logging calls to their code to indicate that certain22 When to use logging25 Logging provides a set of convenience functions for simple logging usage. These27 :func:`critical`. To determine when to use logging, see the table below, which37 | Report events that occur during | :func:`logging.info` (or |38 | normal operation of a program (e.g. | :func:`logging.debug` for very |[all …]
6 import logging17 logging.basicConfig(level=logging.DEBUG)20 class AllowBelowSeverity(logging.Filter):23 the normal logging level filtering does.33 class VarLogMessageFormatter(logging.Formatter):35 Respews logging.* strings on the DUT to /var/log/messages for easier46 # string for logging. In py3 this is just not needed.48 # logging.58 global_level = logging.DEBUG59 stdout_level = logging.INFO[all …]
3 Autotest has some surprisingly complicated logging behaviour.5 Managers allow you to define logging contexts, which define a set of rules on8 wish to temporarily change how logging works, this gives you that mechanism.11 fork-for-a-logging-subprocess ordeal that's better explained as13 normal python logging18 | +------stdout---->+LOGGING|30 ||logging.info('')|| ||logging.info('')||35 logging subprocess, and set its stdout/stderr fd's to the subprocess's stdin.40 python logging in a very consistent way.45 import logging[all …]
18 package org.apache.harmony.logging.tests.java.util.logging;29 import java.util.logging.Filter;30 import java.util.logging.Formatter;31 import java.util.logging.Handler;32 import java.util.logging.Level;33 import java.util.logging.LogManager;34 import java.util.logging.LogRecord;35 import java.util.logging.LoggingPermission;36 import java.util.logging.SocketHandler;37 import java.util.logging.XMLFormatter;[all …]
17 """Test harness for the logging module. Run all tests.22 import logging23 import logging.handlers24 import logging.config53 """Base class for logging tests."""60 """Setup the default logging stream to an internal StringIO instance,62 logger_dict = logging.getLogger().manager.loggerDict63 logging._acquireLock()65 self.saved_handlers = logging._handlers.copy()66 self.saved_handler_list = logging._handlerList[:][all …]
9 import logging27 logging.info('---Get the latest chrome log file')32 logging.exception('Fail to run command %s.', cmd)34 logging.info('---cmd: %s', cmd)35 logging.info('---output: %s', output.lower().strip())46 logging.info('---Get the latest reboot log')50 logging.exception('Fail to run command %s.', cmd)52 logging.info('---cmd: %s', cmd)53 logging.info('---output: %s', output.lower().strip())67 logging.info('---cmd: cros_config %s', cros_config_args)[all …]
18 #include <aws/core/utils/logging/AWSLogging.h>19 #include <aws/core/utils/logging/LogSystemInterface.h>26 #include "tensorflow/c/logging.h"30 static const std::map<const std::string, const Aws::Utils::Logging::LogLevel>32 {"off", Aws::Utils::Logging::LogLevel::Off},33 {"fatal", Aws::Utils::Logging::LogLevel::Fatal},34 {"error", Aws::Utils::Logging::LogLevel::Error},35 {"warn", Aws::Utils::Logging::LogLevel::Warn},36 {"info", Aws::Utils::Logging::LogLevel::Info},37 {"debug", Aws::Utils::Logging::LogLevel::Debug},[all …]
18 #include <aws/core/utils/logging/AWSLogging.h>19 #include <aws/core/utils/logging/LogSystemInterface.h>23 #include "tensorflow/core/platform/logging.h"29 static const std::map<std::string, Aws::Utils::Logging::LogLevel>31 {"off", Aws::Utils::Logging::LogLevel::Off},32 {"fatal", Aws::Utils::Logging::LogLevel::Fatal},33 {"error", Aws::Utils::Logging::LogLevel::Error},34 {"warn", Aws::Utils::Logging::LogLevel::Warn},35 {"info", Aws::Utils::Logging::LogLevel::Info},36 {"debug", Aws::Utils::Logging::LogLevel::Debug},[all …]
... apache/commons/ org/apache/commons/logging/ org/apache/commons/logging/impl ...
13 import logging42 logging.info('executing command %s on peer',cmd)44 logging.info('exit_status is %s', result.exit_status)45 logging.info('stdout is %s stderr is %s', result.stdout, result.stderr)52 logging.error('Error while running cmd %s %s', cmd, e)71 logging.error('Getting the commit hash failed. Updating the peer %s',75 logging.debug('commit %s found on peer %s', commit, peer.host)82 logging.info('copy the file over to the peer')87 logging.debug('package location is %s', bundle_path)91 logging.error('copying the file failed %s ', sys.exc_info())[all …]
9 [Stackdriver Logging](https://cloud.google.com/logging/)10 …ithub.io/google-cloud-java/google-cloud-clients/apidocs/com/google/cloud/logging/LoggingEnhancer.h…22 …ud:google-cloud-logging`](https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/goo…23 library to export logs to Stackdriver. `google-cloud-logging` must be version `1.33.0` or later.25 another cloud platform. See https://cloud.google.com/logging/docs/setup/java for instructions for26 setting up `google-cloud-logging`.28 **Note that this artifact does not support logging done through the Stackdriver Logging agent.**58 `java.util.logging` property:77 Other aspects of configuring the `OpenCensusTraceLoggingEnhancer` depend on the logging78 implementation and `google-cloud-logging` adapter in use.[all …]
35 Logging::ThreadState::ThreadState() = default;36 Logging::ThreadState::~ThreadState() = default;38 Logging::Context::Context(uint32_t name, int64_t timestamp_ms, bool enabled) { in Context()39 Logging::GetInstance()->PushState(ToString(name), timestamp_ms, enabled); in Context()42 Logging::Context::Context(const std::string& name, in Context()45 Logging::GetInstance()->PushState(name, timestamp_ms, enabled); in Context()48 Logging::Context::Context(const char* name, in Context()51 Logging::GetInstance()->PushState(name, timestamp_ms, enabled); in Context()54 Logging::Context::~Context() { in ~Context()55 Logging::GetInstance()->PopState(); in ~Context()[all …]
6 import logging58 logging.info('Host is down; Skipping the verification')63 logging.debug('Detected storage type: %s', storage_type)65 logging.debug('Detected storage state: %s', storage_state)111 logging.info('Servo not initialized; Skipping the verification')115 logging.debug('USB path: %s', usb)118 logging.debug('(Not critical) %s', e)125 logging.info('Starting verification of USB drive...')132 logging.info('Try run check on DUT side.')135 logging.info('Try run check on ServoHost side.')[all …]
15 import logging57 logging.info('Reading servo topology info...')60 logging.info('The host_info not provided. Skip reading.')64 logging.debug('Loaded servo topology: %s', self._topology)66 logging.info('Servo topology loaded successfully.')71 logging.info('Topology is empty. Skip saving.')74 logging.info('The host_info_store not provided. Skip saving.')76 logging.info('Saving servo topology info...')79 logging.info('Servo topology fail to save data.'85 logging.info('Servo topology was not changed. Skip saving.')[all …]
3 import cStringIO, logging, os, sys, unittest18 self.old_root_logging_level = logging.root.level19 logging.basicConfig(level=logging.ERROR)21 logging.raiseExceptions = 126 # Undo the setUp logging.basicConfig call.27 logging.basicConfig(level=self.old_root_logging_level)37 record = logging.LogRecord(38 'test', logging.DEBUG, __file__, 0, 'MESSAGE', 'ARGS', None)42 setup_modules._autotest_logging_handle_error(logging.Handler(),55 self.assertFalse(logging.raiseExceptions)[all …]
5 import logging30 logging.info('ConnectMachine: Canceling connect.')35 logging.info('ConnectMachine: Setting state to REGISTERED.')44 logging.info('ConnectMachine: Modem is DISABLED.')48 logging.error(message)55 logging.info('ConnectMachine: Initiating Enable.')65 logging.info('ConnectMachine: Modem is ENABLING.')67 logging.info('ConnectMachine: Waiting for enable.')72 logging.info('ConnectMachine: Modem is ENABLED.')78 logging.error(message)[all …]
18 package org.apache.commons.logging.impl;22 import java.util.logging.Level;23 import java.util.logging.Logger;25 import org.apache.commons.logging.Log;29 * <p>Implementation of the <code>org.apache.commons.logging.Log</code>30 * interface that wraps the standard JDK logging mechanisms that were112 * Logs a message with <code>java.util.logging.Level.FINE</code>.115 * @see org.apache.commons.logging.Log#debug(Object)123 * Logs a message with <code>java.util.logging.Level.FINE</code>.127 * @see org.apache.commons.logging.Log#debug(Object, Throwable)[all …]
14 """Tools for configuring Python logging."""16 import logging38 _LogLevel(logging.CRITICAL, 'bold_red', 'CRT', '☠️ '),39 _LogLevel(logging.ERROR, 'red', 'ERR', '❌'),40 _LogLevel(logging.WARNING, 'yellow', 'WRN', '⚠️ '),41 _LogLevel(logging.INFO, 'magenta', 'INF', 'ℹ️ '),43 _LogLevel(logging.DEBUG, 'blue', 'DBG', ''),46 _LOG = logging.getLogger(__name__)47 _STDERR_HANDLER = logging.StreamHandler()54 _LOG.setLevel(logging.DEBUG)[all …]
8 import logging16 logging.debug('Module failed to be imported: sponge')21 class SpongeLogHandler(logging.Handler):22 """Helper log handler for logging during sponge."""34 def upload_results(job, log=logging.debug):38 @param log: Logging method, default is logging.debug.42 start_level = logging.getLogger().level45 logging.getLogger().addHandler(log_handler)46 logging.getLogger().setLevel(logging.DEBUG)48 logging.info("added log handler")[all …]