Package org.javarosa.core.services
Class Logger
java.lang.Object
org.javarosa.core.services.Logger
@Deprecated public class Logger extends Object
Deprecated.
Use
LoggerFactory.getLogger(Class) insteadWarning: This class is unused and should remain that way. It will be removed in a future release.
This class depends on ILogger, which is also deprecated. We need to ignore any
deprecation warnings in order to avoid making breaking changes to this class
before removing it on a next release
-
Field Summary
Fields Modifier and Type Field Description static intMAX_MSG_LENGTHDeprecated.UseLoggerFactory.getLogger(Class)instead -
Constructor Summary
Constructors Constructor Description Logger()Deprecated. -
Method Summary
Modifier and Type Method Description static ILogger__()Deprecated.UseLoggerFactory.getLogger(Class)insteadstatic voidcrashTest(String msg)Deprecated.static voiddie(String thread, Exception e)Deprecated.static voidexception(Exception e)Deprecated.UseLogger.error(String, Throwable)insteadstatic voidexception(String info, Exception e)Deprecated.UseLogger.error(String, Throwable)insteadstatic voidhalt()Deprecated.static booleanisLoggingEnabled()Deprecated.static voidlog(String type, String message)Deprecated.UseLogger.info(String)insteadprotected static voidlogForce(String type, String message)Deprecated.static voidregisterLogger(ILogger theLogger)Deprecated.UseLoggerFactory.getLogger(Class)instead
-
Field Details
-
MAX_MSG_LENGTH
Deprecated.UseLoggerFactory.getLogger(Class)instead- See Also:
- Constant Field Values
-
-
Constructor Details
-
Logger
public Logger()Deprecated.
-
-
Method Details
-
registerLogger
Deprecated.UseLoggerFactory.getLogger(Class)instead -
__
Deprecated.UseLoggerFactory.getLogger(Class)instead -
log
Deprecated.UseLogger.info(String)insteadPosts the given data to an existing Incident Log, if one has been registered and if logging is enabled on the device.NOTE: This method makes a best faith attempt to log the given data, but will not produce any output if such attempts fail.
- Parameters:
type- The type of incident to be logged.message- A message describing the incident.
-
logForce
Deprecated. -
isLoggingEnabled
Deprecated. -
exception
Deprecated.UseLogger.error(String, Throwable)instead -
exception
Deprecated.UseLogger.error(String, Throwable)instead -
die
Deprecated. -
crashTest
Deprecated. -
halt
Deprecated.
-