Giter Club home page Giter Club logo

Comments (4)

rajtharan-allen avatar rajtharan-allen commented on June 2, 2024 2

@maciejburda Thanks for the swift Reply. I have updated the token with a random string and not the actual ones, so no security issues.

Also want to let you know that this issue was noted in latest release 2.7.0. Out of curiosity I downgraded to 2.5.1 and it worked without any errors.

from dd-sdk-ios.

maciejburda avatar maciejburda commented on June 2, 2024

@rajtharan-allen Thank you for posting the issue. I will look into it shorty.

In the meantime I am afraid that you have accidentally exposed your client token in the original message. I removed it from the content, but it's still available in the history. I need to advice you to revoke it, in order to mitigate the potential security risk.

from dd-sdk-ios.

maciejburda avatar maciejburda commented on June 2, 2024

I double checked your configuration and it looks like you're missing Logs.enable() configuration call before creating a logger. You should be able to fix your issue by adding this line here:

Datadog.initialize(
    with: Datadog.Configuration(
        clientToken: "clientToken",
        env: "test-logger",
        site: .us1
    ),
    trackingConsent: .granted
)

// Logs feature needs to be enabled independently as it requires extra configuration properties.
// Here we're relying on default values for simplicity.
Logs.enable()

let logger = Logger.create(
    with: Logger.Configuration(
        service: "ios-sdk-example-app",
        name: "logger name",
        networkInfoEnabled: true,
        remoteSampleRate: 100,
        consoleLogFormat: .shortWith(prefix: "[iOS App] ")
    )
)

logger.error("ios error

More info in the docs

from dd-sdk-ios.

maciejburda avatar maciejburda commented on June 2, 2024

@rajtharan-allen Please let us know if it solved your issue :)

from dd-sdk-ios.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.