Debugging Firebase Database

前端 未结 1 437
暖寄归人
暖寄归人 2020-12-20 04:02

Is there a way to debug a firebase database connection (Android)? I\'m using a really simple example (nothing big, just two listeners that listen on changes) that checks the

相关标签:
1条回答
  • 2020-12-20 04:16

    As @qbix said you can use

    FirebaseDatabase.getInstance().setLogLevel(Logger.Level.INFO)
    

    There are multiple levels logs, from firebase src:

    package com.google.firebase.database;
    
    public interface Logger {
      public static enum Level {
        DEBUG,
        INFO,
        WARN,
        ERROR,
        NONE;
    
        private Level() {
        }
      }
    }
    

    More info at: MakinGIANTS - Post

    0 讨论(0)
提交回复
热议问题