question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

When I extend Timber.Tree and override the log method I get passed a null tag:

@Override
protected void log(int priority, String tag, String message, Throwable t) {
   if (priority == Log.VERBOSE || priority == Log.DEBUG || priority == Log.INFO) {
      return;
   }
   // tag is null
   Log.println(priority, tag, message);
}

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

5reactions
JakeWhartoncommented, Oct 12, 2018

Yes. It’s extremely slow.

On Fri, Oct 12, 2018 at 9:23 AM Julien Guerinet notifications@github.com wrote:

@JakeWharton https://github.com/JakeWharton is there any big downside in repurposing the DebugTree tag getter code for a tree used in production? Similar to what @tir38 https://github.com/tir38 is proposing. The goal obviously being having those tags when logging to a crash reporting library without having to define them everywhere.

Thanks

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/JakeWharton/timber/issues/122#issuecomment-429324035, or mute the thread https://github.com/notifications/unsubscribe-auth/AAEEESNRdcwOvpsKB4hTzAhx6MVc64aGks5ukJe_gaJpZM4HULxq .

2reactions
JakeWhartoncommented, Feb 5, 2016

The tag is null unless you call tag(String) at the log site or extend from DebugTree (which you shouldn’t do for production logging).

Read more comments on GitHub >

github_iconTop Results From Across the Web

'null' tag wiki - Stack Overflow
Null is another name for the empty set, denoted by the symbol ∅. For this reason, some programming languages use null or nil...
Read more >
How to check if a tag value is null in IBM Rational Integration ...
This document explains how it is possible to determine if a tag value is null in IBM Rational Integration Tester (RIT).
Read more >
Need help checking if a tag has a null value - Ignition
I want to check if this tag is null, and write a value to a third tag 'Bin 11-2' depending on if it...
Read more >
When should I use a "null" or empty alt tag? - Accessible Web
Alt tags are used to describe the contents of images, but some images don't convey any meaning and are therefore considered "decorative.
Read more >
Getting a null reference exception upon checking the tag of a ...
I have checked if the Raycasthit2D is null, I have checked if its tag is null, ... NULL.tag == "Player")" hence a NullReferenceException....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found