Skip to content

Instantly share code, notes, and snippets.

@magdamiu
Last active October 5, 2020 20:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save magdamiu/4e2f646ccbf803742aa7b3d60f0fd284 to your computer and use it in GitHub Desktop.
Save magdamiu/4e2f646ccbf803742aa7b3d60f0fd284 to your computer and use it in GitHub Desktop.
Methods from Log class applied
public class LogSampleActivity extends AppCompatActivity {
private static final String TAG = "LogSampleActivity";
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_lifecycle_test);
Log.e(TAG, "onCreate");
Log.w(TAG, "onCreate");
Log.i(TAG, "onCreate");
Log.v(TAG, "onCreate");
Log.d(TAG, "onCreate");
Log.wtf(TAG, "onCreate");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment