Home
last modified time | relevance | path

Searched full:handlers (Results 1 – 25 of 1581) sorted by relevance

12345678910>>...64

/external/python/cpython2/Doc/library/
Dlogging.config.rst34 in :mod:`logging` itself) and defining handlers which are declared either in
35 :mod:`logging` or :mod:`logging.handlers`.
194 * *handlers* - the corresponding value will be a dict in which each
216 handlers:
224 class : logging.handlers.RotatingFileHandler
233 :class:`logging.handlers.RotatingFileHandler` with the keyword arguments
249 * ``handlers`` (optional). A list of ids of the handlers for this
253 propagation, filters and handlers specified.
285 the object graph of loggers, handlers, filters, formatters at
287 handlers can be controlled just by setting levels (and, in the case of
[all …]
/external/python/cpython3/Doc/library/
Dlogging.config.rst33 in :mod:`logging` itself) and defining handlers which are declared either in
34 :mod:`logging` or :mod:`logging.handlers`.
237 * *handlers* - the corresponding value will be a dict in which each
259 handlers:
267 class : logging.handlers.RotatingFileHandler
276 :class:`logging.handlers.RotatingFileHandler` with the keyword arguments
292 * ``handlers`` (optional). A list of ids of the handlers for this
296 propagation, filters and handlers specified.
328 the object graph of loggers, handlers, filters, formatters at
330 handlers can be controlled just by setting levels (and, in the case of
[all …]
/external/webrtc/webrtc/modules/desktop_capture/x11/
Dshared_x_display.cc51 EventHandlersMap::iterator handlers = event_handlers_.find(type); in RemoveEventHandler() local
52 if (handlers == event_handlers_.end()) in RemoveEventHandler()
56 std::remove(handlers->second.begin(), handlers->second.end(), handler); in RemoveEventHandler()
57 handlers->second.erase(new_end, handlers->second.end()); in RemoveEventHandler()
59 // Check if no handlers left for this event. in RemoveEventHandler()
60 if (handlers->second.empty()) in RemoveEventHandler()
61 event_handlers_.erase(handlers); in RemoveEventHandler()
76 EventHandlersMap::iterator handlers = event_handlers_.find(e.type); in ProcessPendingXEvents() local
77 if (handlers == event_handlers_.end()) in ProcessPendingXEvents()
79 for (std::vector<XEventHandler*>::iterator it = handlers->second.begin(); in ProcessPendingXEvents()
[all …]
/external/python/cpython2/Lib/logging/
Dconfig.py31 import logging.handlers
84 # Handlers add themselves to logging._handlers
85 handlers = _install_handlers(cp, formatters)
86 _install_loggers(cp, handlers, disable_existing_loggers)
141 """Install and return handlers"""
142 hlist = cp.get("handlers", "keys")
147 handlers = {}
169 if issubclass(klass, logging.handlers.MemoryHandler):
176 handlers[hand] = h
177 #now all handlers are loaded, fixup inter-handler references...
[all …]
/external/python/cpython3/Lib/logging/
Dconfig.py30 import logging.handlers
78 # Handlers add themselves to logging._handlers
79 handlers = _install_handlers(cp, formatters)
80 _install_loggers(cp, handlers, disable_existing_loggers)
125 """Install and return handlers"""
126 hlist = cp["handlers"]["keys"]
131 handlers = {}
151 if issubclass(klass, logging.handlers.MemoryHandler):
155 handlers[hand] = h
156 #now all handlers are loaded, fixup inter-handler references...
[all …]
D__init__.py84 # is only really there as a lower limit for user-defined levels. Handlers and
205 #Handlers, and so might arbitrary user threads. Since Handler code updates the
689 Loggers and Handlers can optionally use Filter instances to filter
724 A base class for loggers and handlers which allows them to share
774 _handlers = weakref.WeakValueDictionary() #map of handler names to handlers
775 _handlerList = [] # added to allow handlers to be removed in reverse of order initialized
785 acquire, release, handlers = _acquireLock, _releaseLock, _handlerList
786 if acquire and release and handlers:
789 if wr in handlers:
790 handlers.remove(wr)
[all …]
/external/python/cpython3/Lib/test/
Dtest_logging.py23 import logging.handlers
110 hlist = self.logger1.handlers + self.root_logger.handlers
111 raise AssertionError('Unexpected handlers: %s' % hlist)
113 hlist = self.logger2.handlers + self.root_logger.handlers
114 raise AssertionError('Unexpected handlers: %s' % hlist)
124 while self.root_logger.handlers:
125 h = self.root_logger.handlers[0]
343 handler = self.root_logger.handlers[0]
372 handler = self.root_logger.handlers[0]
482 self.root_logger.handlers[0].setLevel(SOCIABLE)
[all …]
/external/python/cpython2/Lib/test/
Dtest_logging.py23 import logging.handlers
93 while self.root_logger.handlers:
94 h = self.root_logger.handlers[0]
286 handler = self.root_logger.handlers[0]
392 self.root_logger.handlers[0].setLevel(SOCIABLE)
404 self.root_logger.handlers[0].setLevel(logging.NOTSET)
409 handler = self.root_logger.handlers[0]
458 self.mem_hdlr = logging.handlers.MemoryHandler(10, logging.WARNING,
514 [handlers]
522 handlers=hand1
[all …]
/external/python/cpython3/Doc/howto/
Dlogging.rst343 of components: loggers, handlers, filters, and formatters.
346 * Handlers send the log records (created by loggers) to the appropriate
352 Log event information is passed between loggers, handlers, filters and
404 The flow of log event information in loggers and handlers is illustrated in the
416 objects pass along relevant log messages to all interested log handlers.
430 handler objects from the logger object. Handlers are covered in more detail
474 determine whether the event is passed to the logger's handlers.
476 Child loggers propagate messages up to the handlers associated with their
478 handlers for all the loggers an application uses. It is sufficient to
479 configure handlers for a top-level logger and create child loggers as needed.
[all …]
Dlogging-cookbook.rst37 # create formatter and add it to the handlers
41 # add the handlers to the logger
157 Multiple handlers and formatters
161 minimum or maximum quota for the number of handlers you may add. Sometimes it
164 this up, simply configure the appropriate handlers. The logging calls in the
178 # create formatter and add it to the handlers
182 # add the handlers to logger
193 Notice that the 'application' code does not care about multiple handlers. All
196 The ability to create new handlers with higher- or lower-severity filters can be
269 This example uses console and file handlers, but you can use any number and
[all …]
/external/python/cpython2/Doc/howto/
Dlogging.rst331 of components: loggers, handlers, filters, and formatters.
334 * Handlers send the log records (created by loggers) to the appropriate
340 Log event information is passed between loggers, handlers, filters and
390 The flow of log event information in loggers and handlers is illustrated in the
402 objects pass along relevant log messages to all interested log handlers.
416 handler objects from the logger object. Handlers are covered in more detail
460 determine whether the event is passed to the logger's handlers.
462 Child loggers propagate messages up to the handlers associated with their
464 handlers for all the loggers an application uses. It is sufficient to
465 configure handlers for a top-level logger and create child loggers as needed.
[all …]
Dlogging-cookbook.rst37 # create formatter and add it to the handlers
41 # add the handlers to the logger
153 Multiple handlers and formatters
157 minimum or maximum quota for the number of handlers you may add. Sometimes it
160 this up, simply configure the appropriate handlers. The logging calls in the
174 # create formatter and add it to the handlers
178 # add the handlers to logger
189 Notice that the 'application' code does not care about multiple handlers. All
192 The ability to create new handlers with higher- or lower-severity filters can be
261 This example uses console and file handlers, but you can use any number and
[all …]
/external/python/cpython2/Modules/
Dsignalmodule.c87 } Handlers[NSIG]; variable
169 Handlers[sig_num].tripped = 1; in trip_signal()
215 /* Issue #10311: asynchronously executing signal handlers should not in signal_handler()
321 old_handler = Handlers[sig_num].func; in signal_signal()
323 Handlers[sig_num].func = obj; in signal_signal()
354 old_handler = Handlers[sig_num].func; in signal_getsignal()
536 "This module provides mechanisms to use signal handlers in Python.\n\
608 Handlers[0].tripped = 0; in initsignal()
612 Handlers[i].tripped = 0; in initsignal()
614 Handlers[i].func = DefaultHandler; in initsignal()
[all …]
/external/protobuf/ruby/ext/google/protobuf_c/
Dupb.h1978 * indicates whether this field should have lazy parsing handlers that yield
3755 uint32_t selector_base; /* Used to index into a upb::Handlers table. */
3862 ** upb::Handlers (upb_handlers)
3866 ** parsing or visiting a stream of data. This is similar to how handlers work
3869 ** The handlers have no idea where the data is coming from, so a single set of
3870 ** handlers could be used with two completely different data sources (for
3888 class Handlers;
3897 UPB_DECLARE_DERIVED_TYPE(upb::Handlers, upb::RefCounted,
3906 * of Handlers::Freeze that allows specifying this as a parameter. */
3909 /* All the different types of handlers that can be registered.
[all …]
/external/cldr/tools/java/org/unicode/cldr/util/
DXMLFileReader.java46 * Handlers to use in read()
84 * @param handlers
85 * a set of values for the handlers to use, eg CONTENT_HANDLER | ERROR_HANDLER
90 public XMLFileReader read(String fileName, int handlers, boolean validating) { in read() argument
94 return read(fileName, fis, handlers, validating); in read()
103 * @param handlers
108 public XMLFileReader read(String fileName, InputStream fis, int handlers, boolean validating) { in read() argument
109 … return read(fileName, new InputStreamReader(fis, Charset.forName("UTF-8")), handlers, validating); in read()
115 * @param handlers
121 public XMLFileReader readCLDRResource(String resName, int handlers, boolean validating) { in readCLDRResource() argument
[all …]
/external/protobuf/php/ext/google/protobuf/
Dupb.h1541 * indicates whether this field should have lazy parsing handlers that yield
3075 uint32_t selector_base; /* Used to index into a upb::Handlers table. */
3166 ** upb::Handlers (upb_handlers)
3170 ** parsing or visiting a stream of data. This is similar to how handlers work
3173 ** The handlers have no idea where the data is coming from, so a single set of
3174 ** handlers could be used with two completely different data sources (for
3192 class Handlers; variable
3201 UPB_DECLARE_DERIVED_TYPE(upb::Handlers, upb::RefCounted,
3210 * of Handlers::Freeze that allows specifying this as a parameter. */
3213 /* All the different types of handlers that can be registered.
[all …]
/external/parameter-framework/asio-1.10.6/include/asio/
Dio_service.hpp74 * associated handler. Handlers are invoked only by a thread that is currently
78 * @par Effect of exceptions thrown from handlers
125 * permitting ready handlers to be dispatched.
127 * Alternatively, if the application requires that all operations and handlers
221 * be bound into the handlers for all asynchronous operations associated with
230 * destructor defined above destroys all handlers, causing all @c shared_ptr
238 * more handlers to be dispatched, or until the io_service has been stopped.
241 * from which the io_service may execute handlers. All threads that are
250 * @return The number of handlers that were executed.
258 * The poll() function may also be used to dispatch ready handlers, but
[all …]
/external/autotest/site_utils/
Dloglib.py56 handlers = {
63 handlers = {
65 'class': 'logging.handlers.TimedRotatingFileHandler',
76 'handlers': handlers,
88 'handlers': ['default'],
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_exit/
D2-1.c10 * Any cancelation cleanup handlers that have been pushed and not yet popped
60 /* Set up 3 cleanup handlers */ in a_thread_func()
98 /* Check to make sure that the cleanup handlers were executed in order. */ in main()
107 ("Test FAILED: Did not execute cleanup handlers in order.\n"); in main()
111 ("Test FAILED: Did not execute cleanup handlers in order.\n"); in main()
114 printf("Test FAILED: Did not execute cleanup handlers.\n"); in main()
118 printf("Test FAILED: Did not execute cleanup handlers in order.\n"); in main()
/external/vogar/src/vogar/
DOptionParser.java144 private static final HashMap<Class<?>, Handler> handlers = new HashMap<Class<?>, Handler>(); field in OptionParser
146 handlers.put(boolean.class, new BooleanHandler()); in handlers.put()
147 handlers.put(Boolean.class, new BooleanHandler()); in handlers.put()
149 handlers.put(byte.class, new ByteHandler()); in handlers.put()
150 handlers.put(Byte.class, new ByteHandler()); in handlers.put()
151 handlers.put(short.class, new ShortHandler()); in handlers.put()
152 handlers.put(Short.class, new ShortHandler()); in handlers.put()
153 handlers.put(int.class, new IntegerHandler()); in handlers.put()
154 handlers.put(Integer.class, new IntegerHandler()); in handlers.put()
155 handlers.put(long.class, new LongHandler()); in handlers.put()
[all …]
/external/slf4j/jul-to-slf4j/src/main/java/org/slf4j/bridge/
DSLF4JBridgeHandler.java57 * // Optionally remove existing handlers attached to j.u.l root logger
66 * handlers = org.slf4j.bridge.SLF4JBridgeHandler</pre>
137 Handler[] handlers = rootLogger.getHandlers(); in uninstall() local
138 for (int i = 0; i < handlers.length; i++) { in uninstall()
139 if (handlers[i] instanceof SLF4JBridgeHandler) { in uninstall()
140 rootLogger.removeHandler(handlers[i]); in uninstall()
153 Handler[] handlers = rootLogger.getHandlers(); in isInstalled() local
154 for (int i = 0; i < handlers.length; i++) { in isInstalled()
155 if (handlers[i] instanceof SLF4JBridgeHandler) { in isInstalled()
163 …* Invoking this method removes/unregisters/detaches all handlers currently attached to the root lo…
[all …]
/external/clang/lib/AST/
DStmtCXX.cpp27 Stmt *tryBlock, ArrayRef<Stmt *> handlers) { in Create() argument
29 Size += ((handlers.size() + 1) * sizeof(Stmt *)); in Create()
32 return new (Mem) CXXTryStmt(tryLoc, tryBlock, handlers); in Create()
45 ArrayRef<Stmt *> handlers) in CXXTryStmt() argument
46 : Stmt(CXXTryStmtClass), TryLoc(tryLoc), NumHandlers(handlers.size()) { in CXXTryStmt()
49 std::copy(handlers.begin(), handlers.end(), Stmts + 1); in CXXTryStmt()
/external/apache-commons-math/src/main/java/org/apache/commons/math/ode/events/
DCombinedEventsManager.java30 /** This class manages several {@link EventHandler event handlers} during integration.
76 /** Get all the events handlers that have been added to the manager.
77 * @return an unmodifiable collection of the added event handlers
90 /** Remove all the events handlers that have been added to the manager.
98 /** Get all the events state wrapping the handlers that have been added to the manager.
106 /** Check if the manager does not manage any event handlers.
114 * event handlers.
192 /** Inform the event handlers that the step has been accepted
225 /** Let the event handlers reset the state if they want.
/external/python/cpython3/Modules/
Dsignalmodule.c96 } Handlers[NSIG]; variable
227 _Py_atomic_store_relaxed(&Handlers[sig_num].tripped, 1); in trip_signal()
325 /* Issue #10311: asynchronously executing signal handlers should not in signal_handler()
455 old_handler = Handlers[signalnum].func; in signal_signal_impl()
457 Handlers[signalnum].func = handler; in signal_signal_impl()
490 old_handler = Handlers[signalnum].func; in signal_getsignal_impl()
862 /* if signals was unblocked, signal handlers have been called */ in signal_pthread_sigmask_impl()
1165 "This module provides mechanisms to use signal handlers in Python.\n\
1270 _Py_atomic_store_relaxed(&Handlers[0].tripped, 0); in PyInit__signal()
1274 _Py_atomic_store_relaxed(&Handlers[i].tripped, 0); in PyInit__signal()
[all …]
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_atfork/
D2-2.c19 * NULL can be passed as any of these handlers when no treatment is required.
25 * The test fails if the registered handlers are not executed as expected.
81 /* pthread_atfork handlers */
221 /* Register the handlers */ in main()
226 "Failed to register the atfork handlers(N,N,N)"); in main()
233 "Failed to register the atfork handlers(h,N,N)"); in main()
240 "Failed to register the atfork handlers(N,h,N)"); in main()
247 "Failed to register the atfork handlers(N,N,h)"); in main()
254 "Failed to register the atfork handlers(h,h,N)"); in main()
261 "Failed to register the atfork handlers(h,N,h)"); in main()
[all …]

12345678910>>...64