Home
last modified time | relevance | path

Searched full:logger (Results 1 – 25 of 1965) sorted by relevance

12345678910>>...79

/external/slf4j/slf4j-ext/src/main/java/org/slf4j/ext/
DLoggerWrapper.java27 import org.slf4j.Logger;
34 * A helper class wrapping an {@link org.slf4j.Logger} instance preserving
40 public class LoggerWrapper implements Logger {
45 // the Logger instance it wraps.
46 // Note that 'instanceofLAL' directly depends on Logger.
50 protected final Logger logger; field in LoggerWrapper
52 // is this logger instance a LocationAwareLogger
55 public LoggerWrapper(Logger logger, String fqcn) { in LoggerWrapper() argument
56 this.logger = logger; in LoggerWrapper()
58 if (logger instanceof LocationAwareLogger) { in LoggerWrapper()
[all …]
/external/slf4j/slf4j-migrator/src/test/java/org/slf4j/migrator/line/
DLog4jRuleSetTest.java45 …assertTrue(Arrays.equals(new String[] { "import org.slf4j.Logger;", "import org.slf4j.LoggerFactor… in testImportReplacement()
46 log4jConverter.getReplacement("import org.apache.log4j.Logger;"))); in testImportReplacement()
51 // Logger declaration and instanciation without modifier in testLogManagerGetLoggerReplacement()
52 assertEquals(" Logger l = LoggerFactory.getLogger(MyClass.class);", in testLogManagerGetLoggerReplacement()
53 … log4jConverter.getOneLineReplacement(" Logger l = LogManager.getLogger(MyClass.class);")); in testLogManagerGetLoggerReplacement()
54 // Logger declaration and instanciation with one modifier in testLogManagerGetLoggerReplacement()
55 assertEquals("public Logger mylog=LoggerFactory.getLogger(MyClass.class);", in testLogManagerGetLoggerReplacement()
56 … log4jConverter.getOneLineReplacement("public Logger mylog=LogManager.getLogger(MyClass.class);")); in testLogManagerGetLoggerReplacement()
57 // Logger declaration and instanciation with two modifier in testLogManagerGetLoggerReplacement()
58 assertEquals("public static Logger mylog1 = LoggerFactory.getLogger(MyClass.class);", in testLogManagerGetLoggerReplacement()
[all …]
DJCLRuleSetTest.java40 …assertEquals("import org.slf4j.Logger;", jclConverter.getOneLineReplacement("import org.apache.com… in testImportReplacement()
44 // Logger declaration and instanciation without modifier in testLogFactoryGetLogReplacement()
45 assertEquals(" Logger l = LoggerFactory.getLogger(MyClass.class);", in testLogFactoryGetLogReplacement()
47 // Logger declaration and instanciation with one modifier in testLogFactoryGetLogReplacement()
48 assertEquals("public Logger mylog=LoggerFactory.getLogger(MyClass.class);", in testLogFactoryGetLogReplacement()
50 // Logger declaration and instanciation with two modifier in testLogFactoryGetLogReplacement()
51 assertEquals("public static Logger mylog1 = LoggerFactory.getLogger(MyClass.class);", in testLogFactoryGetLogReplacement()
53 // Logger declaration and instanciation with two modifier and comment at the in testLogFactoryGetLogReplacement()
55 …assertEquals("public static Logger mylog1 = LoggerFactory.getLogger(MyClass.class); //logger insta… in testLogFactoryGetLogReplacement()
56 …lacement("public static Log mylog1 = LogFactory.getLog(MyClass.class); //logger instanciation and … in testLogFactoryGetLogReplacement()
[all …]
/external/slf4j/slf4j-simple/src/test/java/org/slf4j/
DInvocationTest.java56 Logger logger = LoggerFactory.getLogger("test1"); in test1() local
57 logger.debug("Hello world."); in test1()
65 Logger logger = LoggerFactory.getLogger("test2"); in test2() local
67 logger.debug("Hello world 1."); in test2()
68 logger.debug("Hello world {}", i1); in test2()
69 logger.debug("val={} val={}", i1, i2); in test2()
70 logger.debug("val={} val={} val={}", new Object[] { i1, i2, i3 }); in test2()
72 logger.debug("Hello world 2", e); in test2()
73 logger.info("Hello world 2."); in test2()
75 logger.warn("Hello world 3."); in test2()
[all …]
/external/slf4j/slf4j-jcl/src/test/java/org/slf4j/
DInvocationTest.java40 java.util.logging.Logger root = java.util.logging.Logger.getLogger("");
58 Logger logger = LoggerFactory.getLogger("test1"); in test1() local
59 logger.debug("Hello world."); in test1()
67 Logger logger = LoggerFactory.getLogger("test2"); in test2() local
69 logger.debug("Hello world 1."); in test2()
70 logger.debug("Hello world {}", i1); in test2()
71 logger.debug("val={} val={}", i1, i2); in test2()
72 logger.debug("val={} val={} val={}", new Object[] { i1, i2, i3 }); in test2()
74 logger.debug("Hello world 2", e); in test2()
75 logger.info("Hello world 2."); in test2()
[all …]
/external/slf4j/slf4j-log4j12/src/test/java/org/slf4j/
DInvocationTest.java43 org.apache.log4j.Logger root;
51 root = org.apache.log4j.Logger.getRootLogger(); in setUp()
62 Logger logger = LoggerFactory.getLogger("test1"); in test1() local
63 logger.debug("Hello world."); in test1()
72 Logger logger = LoggerFactory.getLogger("test2"); in test2() local
74 logger.trace("Hello trace."); in test2()
76 logger.debug("Hello world 1."); in test2()
77 logger.debug("Hello world {}", i1); in test2()
78 logger.debug("val={} val={}", i1, i2); in test2()
79 logger.debug("val={} val={} val={}", new Object[] { i1, i2, i3 }); in test2()
[all …]
/external/slf4j/jcl-over-slf4j/src/main/java/org/apache/commons/logging/impl/
DSLF4JLog.java23 import org.slf4j.Logger;
28 * delegates all processing to a wrapped {@link Logger org.slf4j.Logger}
40 // used to store this logger's name to recreate it after serialization
44 // logger instance is transient
45 private transient Logger logger; field in SLF4JLog
47 SLF4JLog(Logger logger) { in SLF4JLog() argument
48 this.logger = logger; in SLF4JLog()
49 this.name = logger.getName(); in SLF4JLog()
53 * Directly delegates to the wrapped <code>org.slf4j.Logger</code> instance.
56 return logger.isDebugEnabled(); in isDebugEnabled()
[all …]
DSLF4JLocationAwareLog.java23 import org.slf4j.Logger;
29 * delegates all processing to a wrapped {@link Logger org.slf4j.Logger}
41 // used to store this logger's name to recreate it after serialization
45 // logger instance is transient
46 private transient LocationAwareLogger logger; field in SLF4JLocationAwareLog
50 SLF4JLocationAwareLog(LocationAwareLogger logger) { in SLF4JLocationAwareLog() argument
51 this.logger = logger; in SLF4JLocationAwareLog()
52 this.name = logger.getName(); in SLF4JLocationAwareLog()
57 * <code>org.slf4j.Logger</code> instance.
60 return logger.isTraceEnabled(); in isTraceEnabled()
[all …]
/external/webrtc/webrtc/base/
Doptional_unittest.cc26 // the origin ID from the original. When a new Logger is created from scratch,
29 class Logger { class
31 Logger() : id_(next_id_++), origin_(id_) { Log("default constructor"); } in Logger() function in rtc::__anonadb016690111::Logger
32 explicit Logger(int origin) : id_(next_id_++), origin_(origin) { in Logger() function in rtc::__anonadb016690111::Logger
35 Logger(const Logger& other) : id_(next_id_++), origin_(other.origin_) { in Logger() function in rtc::__anonadb016690111::Logger
38 Logger(Logger&& other) : id_(next_id_++), origin_(other.origin_) { in Logger() function in rtc::__anonadb016690111::Logger
41 ~Logger() { Log("destructor"); } in ~Logger()
42 Logger& operator=(const Logger& other) { in operator =()
47 Logger& operator=(Logger&& other) { in operator =()
52 friend void swap(Logger& a, Logger& b) { in swap()
[all …]
/external/slf4j/slf4j-nop/src/test/java/org/slf4j/
DInvocationTest.java52 Logger logger = LoggerFactory.getLogger("test1"); in test1() local
53 logger.debug("Hello world."); in test1()
61 Logger logger = LoggerFactory.getLogger("test2"); in test2() local
63 logger.debug("Hello world 1."); in test2()
64 logger.debug("Hello world {}", i1); in test2()
65 logger.debug("val={} val={}", i1, i2); in test2()
66 logger.debug("val={} val={} val={}", new Object[] { i1, i2, i3 }); in test2()
68 logger.debug("Hello world 2", e); in test2()
69 logger.info("Hello world 2."); in test2()
71 logger.warn("Hello world 3."); in test2()
[all …]
/external/slf4j/slf4j-jdk14/src/test/java/org/slf4j/
DInvocationTest.java51 java.util.logging.Logger root = java.util.logging.Logger.getLogger("");
71 Logger logger = LoggerFactory.getLogger("test1"); in test1() local
72 logger.debug("Hello world."); in test1()
82 Logger logger = LoggerFactory.getLogger("test2"); in verifyMessageFormatting() local
85 logger.debug("Hello world"); in verifyMessageFormatting()
88 logger.debug("Hello world {}", i1); in verifyMessageFormatting()
91 logger.debug("val={} val={}", i1, i2); in verifyMessageFormatting()
94 logger.debug("val={} val={} val={}", new Object[] { i1, i2, i3 }); in verifyMessageFormatting()
97 logger.debug("Hello world 2", e); in verifyMessageFormatting()
100 logger.info("Hello world 2."); in verifyMessageFormatting()
[all …]
/external/slf4j/slf4j-log4j12/src/main/java/org/slf4j/impl/
DLog4jLoggerAdapter.java30 import org.slf4j.Logger;
38 * A wrapper over {@link org.apache.log4j.Logger org.apache.log4j.Logger} in
39 * conforming to the {@link Logger} interface.
59 final transient org.apache.log4j.Logger logger; field in Log4jLoggerAdapter
74 Log4jLoggerAdapter(org.apache.log4j.Logger logger) { in Log4jLoggerAdapter() argument
75 this.logger = logger; in Log4jLoggerAdapter()
76 this.name = logger.getName(); in Log4jLoggerAdapter()
82 logger.isTraceEnabled(); in isTraceCapable()
90 * Is this logger instance enabled for the TRACE level?
92 * @return True if this Logger is enabled for level TRACE, false otherwise.
[all …]
/external/ims/rcs/rcsservice/src/com/android/service/ims/presence/
DStackListener.java64 import com.android.ims.internal.Logger;
72 * The logger
74 private Logger logger = Logger.getLogger(this.getClass().getName()); field in StackListener
114 logger.debug( "Thread=" + Thread.currentThread().getName() + " received " in handleMessage()
117 logger.error("msg=null"); in handleMessage()
127 logger.error("mPresencePublication=" + mPresencePublication + " val=" + val); in handleMessage()
140 logger.error("mPresencePublication=" + mPresencePublication + in handleMessage()
154 logger.error("mPresenceSubcriber=" + mPresenceSubscriber + in handleMessage()
168 logger.error("mPresencePublication=" + mPresencePublication + in handleMessage()
182 logger.error("mPresenceSubscriber=" + mPresenceSubscriber + in handleMessage()
[all …]
DPresencePublication.java68 import com.android.ims.internal.Logger;
82 private Logger logger = Logger.getLogger(this.getClass().getName()); field in PresencePublication
164 logger.debug("PresencePublication constrcuct"); in PresencePublication()
175 logger.debug("The current mobile data is: " + (mDataEnabled ? "enabled" : "disabled")); in PresencePublication()
181 logger.debug("The current TTY mode is: " + mPreferredTtyMode); in PresencePublication()
192 logger.print("onReceive intent=" + intent); in PresencePublication()
196 logger.print("ACTION_SIM_STATE_CHANGED INTENT_KEY_ICC_STATE=" + stateExtra); in PresencePublication()
204 logger.error("teleMgr = null"); in PresencePublication()
237 logger.print("Pulled out SIM, set to PUBLISH_STATE_NOT_PUBLISHED"); in PresencePublication()
248 logger.print("Airplane mode, set to PUBLISH_STATE_NOT_PUBLISHED"); in PresencePublication()
[all …]
/external/testng/src/main/java/org/testng/log4testng/
DLogger.java41 * # The org.testng.reporters.EmailableReporter Logger will log TRACE level and above
42 * log4testng.logger.org.testng.reporters.EmailableReporter=TRACE
44 * # All Logger in packages below org.testng will log WARN level and above
45 * log4testng.logger.org.testng=WARN
50 * import org.testng.log4testng.Logger;
53 * private static final Logger LOGGER = Logger.getLogger(ThisClass.class);
56 * LOGGER.debug("entering myMethod()");
58 * LOGGER.warn("unknown file: " + filename);
60 * LOGGER.error("Unexpected error", exception);
63 public class Logger { class
[all …]
/external/ims/rcs/presencepolling/src/com/android/service/ims/presence/
DEABService.java63 import com.android.ims.internal.Logger;
67 private Logger logger = Logger.getLogger(this.getClass().getName()); field in EABService
90 logger.info("EAB Service constructed"); in EABService()
106 logger.debug("onReceive intent: " + action);
110 logger.debug("Contacts database created.");
116 logger.debug("Resetting timestamp values in shared pref.");
129 logger.debug("lastChangedTimestamp=" + lastChangedTimestamp +
133 logger.debug("Resetting timestamp values in shared pref.");
147 logger.info("EAB Database Reset, Recreating...");
168 logger.debug("onChange for ContactChangedListener"); in onChange()
[all …]
/external/guice/core/test/com/google/inject/
DLoggerInjectionTest.java6 import java.util.logging.Logger;
16 @Inject Logger logger; field in LoggerInjectionTest
21 assertEquals("com.google.inject.LoggerInjectionTest", logger.getName()); in testLoggerWithMember()
27 assertEquals("com.google.inject.LoggerInjectionTest$Foo", foo.logger.getName()); in testLoggerInConstructor()
31 Logger logger; field in LoggerInjectionTest.Foo
35 Foo(Logger logger) { in Foo() argument
36 this.logger = logger; in Foo()
42 assertNull(injector.getInstance(Logger.class).getName()); in testLoggerWithoutMember()
43 assertNull(injector.getProvider(Logger.class).get().getName()); in testLoggerWithoutMember()
44 assertNull(injector.getBinding(Logger.class).getProvider().get().getName()); in testLoggerWithoutMember()
[all …]
/external/slf4j/slf4j-jdk14/src/main/java/org/slf4j/impl/
DJDK14LoggerAdapter.java30 import org.slf4j.Logger;
38 * A wrapper over {@link java.util.logging.Logger java.util.logging.Logger} in
39 * conformity with the {@link Logger} interface. Note that the logging levels
50 transient final java.util.logging.Logger logger; field in JDK14LoggerAdapter
54 JDK14LoggerAdapter(java.util.logging.Logger logger) { in JDK14LoggerAdapter() argument
55 this.logger = logger; in JDK14LoggerAdapter()
56 this.name = logger.getName(); in JDK14LoggerAdapter()
60 * Is this logger instance enabled for the FINEST level?
62 * @return True if this Logger is enabled for level FINEST, false otherwise.
65 return logger.isLoggable(Level.FINEST); in isTraceEnabled()
[all …]
/external/clang/tools/libclang/
DCLog.h31 class Logger; variable
32 typedef IntrusiveRefCntPtr<Logger> LogRef;
37 /// if (LogRef Log = Logger::make(__func__)) {
41 class Logger : public RefCountedBase<Logger> {
53 if (const char *EnvOpt = Logger::getEnvVar()) in isStackTracingEnabled()
60 return new Logger(name, trace);
64 explicit Logger(llvm::StringRef name, bool trace) in Logger() function
66 ~Logger();
68 Logger &operator<<(CXTranslationUnit);
69 Logger &operator<<(const FileEntry *FE);
[all …]
/external/ims/rcs/rcsservice/src/com/android/service/ims/
DRcsStackAdaptor.java65 import com.android.ims.internal.Logger;
92 // The logger
93 private Logger logger = Logger.getLogger(this.getClass().getName()); field in RcsStackAdaptor
138 logger.debug("imsEnableState=" + imsEnableState); in setImsEnableState()
184 logger.debug( "Thread=" + Thread.currentThread().getName() + " received "
187 logger.error("msg=null");
193 logger.debug("handleMessage msg=PRESENCE_INIT_IMS_UCE_SERVICE" );
198 logger.debug("handleMessage unknown msg=" + msg.what);
209 logger.error("getCapabilityDiscoveryEnabled = false"); in checkStackAndPublish()
215 logger.error("checkStackAndPublish ret=" + ret); in checkStackAndPublish()
[all …]
/external/fonttools/Lib/fontTools/misc/
DloggingTools.py99 the handler to the top-level library logger ("fontTools").
104 logger Specifies the logger name or a Logger instance to be configured.
105 (it defaults to "fontTools" logger). Unlike basicConfig, this
106 function can be called multiple times to reconfigure a logger.
107 If the logger or any of its children already exists before the
119 level Set the logger level to the specified level.
124 handlers, which will be added to the logger. Any handler
154 # By default, the top-level library logger is configured.
155 logger = kwargs.pop("logger", "fontTools")
156 if not logger or isinstance(logger, basestring):
[all …]
/external/grpc-grpc/src/ruby/bin/
Dmath_client.rb30 require 'logger'
35 def logger method
36 LOGGER
39 LOGGER = Logger.new(STDOUT) constant
45 GRPC.logger.info('request_response')
46 GRPC.logger.info('----------------')
48 GRPC.logger.info("div(7/3): req=#{req.inspect}")
50 GRPC.logger.info("Answer: #{resp.inspect}")
51 GRPC.logger.info('----------------')
56 GRPC.logger.info('client_streamer')
[all …]
/external/syzkaller/vendor/google.golang.org/grpc/grpclog/
Dlogger.go21 // Logger mimics golang's standard Logger as an interface.
24 type Logger interface { interface
33 // SetLogger sets the logger that is used in grpc. Call only from
37 func SetLogger(l Logger) { argument
38 logger = &loggerWrapper{Logger: l}
41 // loggerWrapper wraps Logger into a LoggerV2.
43 Logger anonMember
47 g.Logger.Print(args...)
51 g.Logger.Println(args...)
55 g.Logger.Printf(format, args...)
[all …]
/external/chromium-trace/catapult/third_party/pyserial/serial/
Drfc2217.py320 if self.connection.logger:
321 self.connection.logger.debug("SB Requesting %s -> %r" % (self.name, self.value))
358 if self.connection.logger:
359 … self.connection.logger.debug("SB Answer %s -> %r -> %s" % (self.name, suboption, self.state))
373 self.logger = None
449 if self.logger:
450 self.logger.info("Negotiated options: %s" % self._telnet_options)
485 if self.logger:
486 self.logger.debug("Negotiating settings: %s" % (items,))
494 if self.logger:
[all …]
/external/opencensus-java/contrib/log_correlation/log4j2/src/test/java/io/opencensus/contrib/logcorrelation/log4j2/
DOpenCensusLog4jLogCorrelationAllSpansTest.java28 import org.apache.logging.log4j.core.Logger;
58 new Function<Logger, Void>() { in addSampledSpanToLogEntryWithAllSpans()
60 public Void apply(Logger logger) { in addSampledSpanToLogEntryWithAllSpans()
61 logger.warn("message #1"); in addSampledSpanToLogEntryWithAllSpans()
81 new Function<Logger, Void>() { in addNonSampledSpanToLogEntryWithAllSpans()
83 public Void apply(Logger logger) { in addNonSampledSpanToLogEntryWithAllSpans()
84 logger.info("message #2"); in addNonSampledSpanToLogEntryWithAllSpans()
100 new Function<Logger, Void>() { in addBlankSpanToLogEntryWithAllSpans()
102 public Void apply(Logger logger) { in addBlankSpanToLogEntryWithAllSpans()
103 logger.fatal("message #3"); in addBlankSpanToLogEntryWithAllSpans()
[all …]

12345678910>>...79