OsmAnd
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Classes | Static Public Member Functions | Static Public Attributes
net.osmand.LogUtil Class Reference

List of all members.

Classes

class  OsmandLogImplementation

Static Public Member Functions

static Log getLog (String name)
static Log getLog (Class<?> cl)

Static Public Attributes

static String TAG = "net.osmand"

Detailed Description

That class is replacing of standard LogFactory due to problems with Android implementation of LogFactory.

1. It is impossible to replace standard LogFactory (that is hidden in android.jar) 2. Implementation of LogFactory always creates Logger.getLogger(String name) 3. + It is possible to enable logger level by calling Logger.getLogger("net.osmand").setLevel(Level.ALL); 4. Logger goes to low level android.util.Log where android.util.Log::isLoggable(String, int) is checked String tag -> is string of length 23 (stripped full class name) 5. It is impossible to set for all tags debug level (info is default) - android.util.Log::isLoggable(String, int).


Member Function Documentation

static Log net.osmand.LogUtil.getLog ( String  name) [static]
static Log net.osmand.LogUtil.getLog ( Class<?>  cl) [static]

Member Data Documentation

String net.osmand.LogUtil.TAG = "net.osmand" [static]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines