Android Open Source - Aether-s-Notebook-Android-Client Logger From Project Back to project page Aether-s-Notebook-Android-Client .
License The source code is released under:
GNU General Public License
If you think the Android project Aether-s-Notebook-Android-Client listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
Java Source Code package aethers.notebook.util;
/ / f r o m w w w . j a v a 2 s . c o m
import java.util.HashMap;
import java.util.Map;
import android.util.Log;
public class Logger
{
private static final Map<Package, Logger> loggers = new HashMap<Package, Logger>();
public synchronized static Logger getLogger(Class<?> clazz)
{
if (loggers.containsKey(clazz.getPackage()))
return loggers.get(clazz.getPackage());
Logger logger = new Logger(clazz.getPackage().getName());
loggers.put(clazz.getPackage(), logger);
return logger;
}
private final String name;
public Logger(String name)
{
this.name = name;
}
public void debug(String message)
{
Log.d(name, message);
}
public void debug(String message, Throwable cause)
{
Log.d(name, message, cause);
}
public void error(String message)
{
Log.e(name, message);
}
public void error(String message, Throwable cause)
{
Log.e(name, message, cause);
}
public void info(String message)
{
Log.i(name, message);
}
public void info(String message, Throwable cause)
{
Log.i(name, message, cause);
}
public void verbose(String message)
{
Log.v(name, message);
}
public void verbose(String message, Throwable cause)
{
Log.v(name, message, cause);
}
public void warn(String message)
{
Log.w(name, message);
}
public void warn(String message, Throwable cause)
{
Log.w(name, message, cause);
}
}
Java Source Code List aethers.notebook.appender.managed.file.ConfigurationActivity.java aethers.notebook.appender.managed.file.Configuration.java aethers.notebook.appender.managed.file.FileAppender.java aethers.notebook.appender.managed.uploader.ConfigurationActivity.java aethers.notebook.appender.managed.uploader.Configuration.java aethers.notebook.appender.managed.uploader.UploaderAppender.java aethers.notebook.core.Action.java aethers.notebook.core.AppenderServiceIdentifier.java aethers.notebook.core.BootReceiver.java aethers.notebook.core.ConfigurationTemplate.java aethers.notebook.core.Configuration.java aethers.notebook.core.CoreService.java aethers.notebook.core.LoggerServiceIdentifier.java aethers.notebook.core.TimeStamp.java aethers.notebook.core.ui.ConfigurationActivity.java aethers.notebook.core.ui.EditIntegerPreference.java aethers.notebook.core.ui.IntegerPreferenceChangeListener.java aethers.notebook.core.ui.NonPersistingButtonPreference.java aethers.notebook.core.ui.PersistingButtonPreference.java aethers.notebook.core.ui.filechooser.DirectoryChooser.java aethers.notebook.core.ui.filechooser.FileChooser.java aethers.notebook.core.ui.filechooser.FileListAdapter.java aethers.notebook.logger.managed.PushLogger.java aethers.notebook.logger.managed.celllocation.CellLocationLogger.java aethers.notebook.logger.managed.dataconnectionstate.DataConnectionStateLogger.java aethers.notebook.logger.managed.position.ConfigurationActivity.java aethers.notebook.logger.managed.position.Configuration.java aethers.notebook.logger.managed.position.PositionLogger.java aethers.notebook.logger.managed.servicestate.ServiceStateLogger.java aethers.notebook.logger.managed.signalstrength.SignalStrengthLogger.java aethers.notebook.logger.managed.wifi.ConfigurationActivity.java aethers.notebook.logger.managed.wifi.Configuration.java aethers.notebook.logger.managed.wifi.WifiLogger.java aethers.notebook.util.Logger.java