Dana
2025-12-01 faf9ab5bc6f172819dd5c0cd6dcc0ebb82391c1e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package com.anyun.h264;
 
import android.app.Application;
import timber.log.Timber;
 
/**
 * Application class for initializing Timber logging.
 */
public class H264Application extends Application {
    @Override
    public void onCreate() {
        super.onCreate();
        
        // Initialize Timber
//        if (BuildConfig.DEBUG) {
            // In debug mode, use both console and file logging
            Timber.plant(new Timber.DebugTree());
            Timber.plant(new FileLoggingTree());
//        } else {
//            // In release mode, only use file logging
//            Timber.plant(new FileLoggingTree());
//        }
        
        Timber.d("H264Application onCreate - Timber initialized");
    }
}