Java Code Examples for timber.log.Timber#DebugTree
The following examples show how to use
timber.log.Timber#DebugTree .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Utils.java From AirMapSDK-Android with Apache License 2.0 | 5 votes |
public static boolean timberContainsDebugTree() { for (Timber.Tree tree : Timber.forest()) { if (tree instanceof Timber.DebugTree) { return true; } } return false; }
Example 2
Source File: LumberYard.java From DebugDrawer with Apache License 2.0 | 5 votes |
public Timber.Tree tree() { return new Timber.DebugTree() { @Override protected void log(int priority, String tag, String message, Throwable t) { addEntry(new LogEntry(priority, tag, message, LOG_DATE_PATTERN.format(Calendar.getInstance().getTime()))); } }; }
Example 3
Source File: LumberYard.java From debugdrawer with Apache License 2.0 | 5 votes |
public Timber.Tree tree() { return new Timber.DebugTree() { @Override protected void log(int priority, String tag, String message, Throwable t) { addEntry(new LogEntry(priority, tag, message, LOG_DATE_PATTERN.format(Calendar.getInstance().getTime()))); } }; }
Example 4
Source File: LumberYard.java From u2020-mvp with Apache License 2.0 | 5 votes |
public Timber.Tree tree() { return new Timber.DebugTree() { @Override protected void log(int priority, String tag, String message, Throwable t) { addEntry(new Entry(priority, tag, message)); } }; }
Example 5
Source File: LumberYard.java From u2020 with Apache License 2.0 | 5 votes |
public Timber.Tree tree() { return new Timber.DebugTree() { @Override protected void log(int priority, String tag, String message, Throwable t) { addEntry(new Entry(priority, tag, message)); } }; }
Example 6
Source File: ApplicationModule.java From Forage with Mozilla Public License 2.0 | 4 votes |
@NonNull @Provides @Singleton public static Timber.DebugTree provideDebugTree() { return new Timber.DebugTree(); }
Example 7
Source File: AppModule.java From Sky31Radio with Apache License 2.0 | 4 votes |
@Provides Timber.Tree provideTimberTree(){ return BuildConfig.DEBUG ? new Timber.DebugTree() : new Timber.HollowTree(); }