Home
last modified time | relevance | path

Searched full:logging (Results 1 – 25 of 7068) sorted by relevance

12345678910>>...283

/external/python/cpython3/Lib/test/
Dtest_logging.py17 """Test harness for the logging module. Run all tests.
22 import logging
23 import logging.handlers
24 import logging.config
73 """Base class for logging tests."""
80 """Setup the default logging stream to an internal StringIO instance,
84 logger_dict = logging.getLogger().manager.loggerDict
85 logging._acquireLock()
87 self.saved_handlers = logging._handlers.copy()
88 self.saved_handler_list = logging._handlerList[:]
[all …]
/external/python/cpython3/Doc/howto/
Dlogging-cookbook.rst4 Logging Cookbook
9 This page contains a number of recipes related to logging, which have been found
12 .. currentmodule:: logging
14 Using logging in multiple modules
17 Multiple calls to ``logging.getLogger('someLogger')`` return a reference to the
25 import logging
29 logger = logging.getLogger('spam_application')
30 logger.setLevel(logging.DEBUG)
32 fh = logging.FileHandler('spam.log')
33 fh.setLevel(logging.DEBUG)
[all …]
Dlogging.rst2 Logging HOWTO
9 .. currentmodule:: logging
11 Basic Logging Tutorial
14 Logging is a means of tracking events that happen when some software runs. The
15 software's developer adds logging calls to their code to indicate that certain
22 When to use logging
25 Logging provides a set of convenience functions for simple logging usage. These
27 :func:`critical`. To determine when to use logging, see the table below, which
37 | Report events that occur during | :func:`logging.info` (or |
38 | normal operation of a program (e.g. | :func:`logging.debug` for very |
[all …]
/external/python/cpython2/Doc/howto/
Dlogging-cookbook.rst4 Logging Cookbook
9 This page contains a number of recipes related to logging, which have been found
12 .. currentmodule:: logging
14 Using logging in multiple modules
17 Multiple calls to ``logging.getLogger('someLogger')`` return a reference to the
25 import logging
29 logger = logging.getLogger('spam_application')
30 logger.setLevel(logging.DEBUG)
32 fh = logging.FileHandler('spam.log')
33 fh.setLevel(logging.DEBUG)
[all …]
Dlogging.rst2 Logging HOWTO
9 .. currentmodule:: logging
11 Basic Logging Tutorial
14 Logging is a means of tracking events that happen when some software runs. The
15 software's developer adds logging calls to their code to indicate that certain
22 When to use logging
25 Logging provides a set of convenience functions for simple logging usage. These
27 :func:`critical`. To determine when to use logging, see the table below, which
37 | Report events that occur during | :func:`logging.info` (or |
38 | normal operation of a program (e.g. | :func:`logging.debug` for very |
[all …]
/external/autotest/client/common_lib/
Dlogging_config.py6 import logging
17 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 easier
46 # string for logging. In py3 this is just not needed.
48 # logging.
58 global_level = logging.DEBUG
59 stdout_level = logging.INFO
[all …]
Dlogging_manager.py3 Autotest has some surprisingly complicated logging behaviour.
5 Managers allow you to define logging contexts, which define a set of rules on
8 wish to temporarily change how logging works, this gives you that mechanism.
11 fork-for-a-logging-subprocess ordeal that's better explained as
13 normal python logging
18 | +------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 …]
/external/apache-harmony/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/
DSocketHandlerTest.java18 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 …]
/external/python/cpython2/Lib/test/
Dtest_logging.py17 """Test harness for the logging module. Run all tests.
22 import logging
23 import logging.handlers
24 import logging.config
53 """Base class for logging tests."""
60 """Setup the default logging stream to an internal StringIO instance,
62 logger_dict = logging.getLogger().manager.loggerDict
63 logging._acquireLock()
65 self.saved_handlers = logging._handlers.copy()
66 self.saved_handler_list = logging._handlerList[:]
[all …]
/external/autotest/client/common_lib/cros/manual/
Dcfm_helper.py9 import logging
27 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 …]
/external/tensorflow/tensorflow/c/experimental/filesystem/plugins/s3/
Daws_logging.cc18 #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 …]
/external/tensorflow/tensorflow/core/platform/s3/
Daws_logging.cc18 #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 …]
/external/guice/extensions/persist/lib/
Dcommons-logging-1.0.4.jar ... apache/commons/ org/apache/commons/logging/ org/apache/commons/logging/impl ...
/external/guice/lib/build/
Dcommons-logging-1.0.4.jar ... apache/commons/ org/apache/commons/logging/ org/apache/commons/logging/impl ...
/external/guice/extensions/struts2/lib/
Dcommons-logging-1.0.4.jar ... apache/commons/ org/apache/commons/logging/ org/apache/commons/logging/impl ...
/external/autotest/server/cros/bluetooth/
Dbluetooth_peer_update.py13 import logging
42 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 …]
/external/opencensus-java/contrib/log_correlation/stackdriver/
DREADME.md9 [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 for
26 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 logging
78 implementation and `google-cloud-logging` adapter in use.
[all …]
/external/webrtc/modules/remote_bitrate_estimator/test/
Dbwe_test_logging.cc35 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 …]
/external/autotest/site_utils/admin_audit/
Dverifiers.py6 import logging
58 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 …]
/external/autotest/server/cros/servo/topology/
Dservo_topology.py15 import logging
57 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 …]
/external/autotest/client/
Dsetup_modules_unittest.py3 import cStringIO, logging, os, sys, unittest
18 self.old_root_logging_level = logging.root.level
19 logging.basicConfig(level=logging.ERROR)
21 logging.raiseExceptions = 1
26 # 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 …]
/external/autotest/client/cros/cellular/pseudomodem/
Dconnect_machine.py5 import logging
30 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 …]
/external/apache-http/src/org/apache/commons/logging/impl/
DJdk14Logger.java18 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 were
112 * 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 …]
/external/pigweed/pw_cli/py/pw_cli/
Dlog.py14 """Tools for configuring Python logging."""
16 import logging
38 _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 …]
/external/autotest/site_utils/sponge_lib/
Dsponge_utils.py8 import logging
16 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().level
45 logging.getLogger().addHandler(log_handler)
46 logging.getLogger().setLevel(logging.DEBUG)
48 logging.info("added log handler")
[all …]

12345678910>>...283