Skip to content

Android: do I need to call static method LogManager.initialize(String tenantToken, ILogConfiguration configuration) #940

Description

@theta3

Looking at section 6 https://github.com/microsoft/cpp_client_telemetry/blob/main/docs/cpp-start-android.md. ILogger is obtained through calling LogManager.initialize(). But there is also static LogManager.getLogger(tenantId, source) and non static getLogger(). Looking at the test https://github.com/microsoft/cpp_client_telemetry/blob/main/lib/android_build/app/src/androidTest/java/com/microsoft/applications/events/maesdktest/LogManagerDDVUnitTest.java : multipleLogManagerInstantiation(), initialize() isn't called. What's the difference between these 3 methods?

Do I need to call LogManager.initialize() to init the SDK?

If I create multiple ILogConfiguration configs, which config will be used when calling static LogManager.getLogger(tenantId, source) ?

Activity

  1. lalitb commented on Oct 26, 2021

    @lalitb
    Contributor

    saurabh-sagrawal, Martin Harriman (@larvacea) - Can you have a look at this ask please?

  2. locked and limited conversation to collaborators on Jun 30, 2022
  3. converted this issue into a discussion #1030 on Jun 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

iOSiOS related issuequestionFurther information is requested

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions