Hello All,
After integrating CBL db18, we have made the following code changes to set the LogLevel properly.
CBL db16:
Couchbase.Lite.Logging.Log.Domains.Database.Level = Couchbase.Lite.Logging.LogLevel.Verbose;
CBL db18:
Database.SetLogLevel(Couchbase.Lite.Logging.LogDomain.Database, Couchbase.Lite.Logging.LogLevel.Verbose)
And, noticing that setting the LogLevel to “Info” to available domains(reduced in CBL db 17 and 18)
Database.SetLogLevel(Couchbase.Lite.Logging.LogDomain.Database, /Couchbase.Lite.Logging.LogLevel.Info) ;
Database.SetLogLevel(Couchbase.Lite.Logging.LogDomain.Query, /Couchbase.Lite.Logging.LogLevel.Info;
Database.SetLogLevel(Couchbase.Lite.Logging.LogDomain.LiteCore, /Couchbase.Lite.Logging.LogLevel.Info);
Database.SetLogLevel(Couchbase.Lite.Logging.LogDomain.Replicator, /Couchbase.Lite.Logging.LogLevel.Info);
producing more detailed information than setting LogLevel to “Verbose”
Database.SetLogLevel(Couchbase.Lite.Logging.LogDomain.Database, Couchbase.Lite.Logging.LogLevel.Verbose) ;
Database.SetLogLevel(Couchbase.Lite.Logging.LogDomain.Query, Couchbase.Lite.Logging.LogLevel.Verbose);
Database.SetLogLevel(Couchbase.Lite.Logging.LogDomain.LiteCore, Couchbase.Lite.Logging.LogLevel.Verbose);
Database.SetLogLevel(Couchbase.Lite.Logging.LogDomain.Replicator, Couchbase.Lite.Logging.LogLevel.Verbose);
Can you please verify if this is how it is intended to work?
Also,does the order in the LogLevel enum means anything like 0/Debug is most informative then 1/Verbose? Or, order doesn’t mean anything rather the intend/name is more accurate reflection of the logging purpose?
Isn’t Verbose suppose to capture all “Info, Error, Warning, Verbose” ?
Also, we are also internally using MS Logging, trying to map it to CBL’s LogLevel
Assuming mapping MS’s Trace and Critical to CBL’s Verbose, and Error would be appropriate?
Thank you