Android Open Source - shareplay Default Logger






From Project

Back to project page shareplay.

License

The source code is released under:

Copyright (c) 2014, Benjamin Damer All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: ...

If you think the Android project shareplay 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 com.afqa123.log;
//from w  w  w .  j av  a2  s .  co m
import android.util.Log;

class DefaultLogger implements Logger {

  private String className;
  
  public DefaultLogger(String forClass) {
    className = forClass;
  }
  
  @Override
  public void debug(String msg) {
    Log.d(className, msg);
  }

  @Override
  public void debug(String msg, Throwable t) {
    Log.d(className, msg, t);
  }

  @Override
  public void warn(String msg) {
    Log.w(className, msg);
  }

  @Override
  public void warn(String msg, Throwable t) {
    Log.w(className, msg, t);
  }

  @Override
  public void info(String msg) {
    Log.i(className, msg);
  }

  @Override
  public void info(String msg, Throwable t) {
    Log.i(className, msg, t);
  }

  @Override
  public void error(String msg) {
    Log.e(className, msg);
  }

  @Override
  public void error(String msg, Throwable t) {
    Log.e(className, msg, t);
  }
}




Java Source Code List

com.afqa123.log.DefaultLogger.java
com.afqa123.log.FileLogger.java
com.afqa123.log.LoggerFactory.java
com.afqa123.log.Logger.java
com.afqa123.log.NullLogger.java
com.afqa123.shareplay.DialogFactory.java
com.afqa123.shareplay.MediaPlayerService.java
com.afqa123.shareplay.SelectionActivity.java
com.afqa123.shareplay.SharePlayActivity.java
com.afqa123.shareplay.common.AuthorizationException.java
com.afqa123.shareplay.common.Base64.java
com.afqa123.shareplay.common.Constants.java
com.afqa123.shareplay.common.CustomFeedback.java
com.afqa123.shareplay.common.DAAPException.java
com.afqa123.shareplay.common.DBHelper.java
com.afqa123.shareplay.common.Feedback.java
com.afqa123.shareplay.common.Filename.java
com.afqa123.shareplay.common.ListWrapper.java
com.afqa123.shareplay.common.StoppableThread.java
com.afqa123.shareplay.common.StreamProxy.java
com.afqa123.shareplay.data.ContentCode.java
com.afqa123.shareplay.data.Item.java
com.afqa123.shareplay.data.Playlist.java
com.afqa123.shareplay.impl.Client.java
com.afqa123.shareplay.impl.DatabaseCatalog.java
com.afqa123.shareplay.impl.ServerProvider.java
com.afqa123.shareplay.impl.Server.java
com.afqa123.shareplay.interfaces.Catalog.java
com.afqa123.shareplay.interfaces.IClient.java
com.afqa123.shareplay.interfaces.IServerProvider.java