Comments (3)
I still don't understand fully the relationship between the Logs and the Logger.
Logs
struct is simply used for namespacing, I would have preferred Logs
as empty enum to make is obvious because you can't instantiate enum type itself.
You are on right track, there is full list of instructions provided in the log collection documentation
Essentially
// initialize the SDK
Datadog.initialize(
with: Datadog.Configuration(
clientToken: "<client token>",
env: "<environment>",
service: "<service name>"
),
trackingConsent: trackingConsent
)
// Enable logging
Logs.enable()
// Create your logger
let logger = Logger.create(
with: Logger.Configuration(
name: "<logger name>",
networkInfoEnabled: true,
remoteLogThreshold: .info,
consoleLogFormat: .shortWith(prefix: "[iOS App] ")
)
)
from dd-sdk-ios.
Hi @Petter-W, you can still find it in the Logs feature Configuration.
from dd-sdk-ios.
Thanks @plousada! I still don't understand fully the relationship between the Logs and the Logger.
Our setup has been pretty simple, we've set up the Datadog core and created a Logger. With 2.0 we should set up the core, enable Logs (Logs.enable
) and then create the logger?
from dd-sdk-ios.
Related Issues (20)
- Can we use Head-based sampling on iOS? HOT 3
- iOS Kotlin Multiplatform hang after crash when using DatadogCrashReporting as a result of PLCrashReporter HOT 1
- If consent is not granted, I can't send any traces, even those without any user information. HOT 4
- Unable to use swift-api-digester when Datadog is a dependency HOT 4
- crash in KronosNTPPacket.prepareToSend(transmitTime:) HOT 1
- is NOT allowed to set HSTS for main doc HOT 2
- Sessions remaining pending after crash, how can I close them? HOT 10
- 2.7.1 - RUM not delivered, reporting internet connection offline when connected to wifi HOT 2
- Version 2.8.0 HOT 1
- Swift Package Manager warning: No rule to process file Datadog.modulemap HOT 2
- Is it safe to call enable multiple times? HOT 2
- Update Apple Privacy Manifest - add NSPrivacyAccessedAPICategorySystemBootTime HOT 6
- Missing crash report context HOT 5
- False `NSPrivacyAccessedAPICategoryFileTimestamp` API usage detection? (Privacy Manifest) HOT 7
- "Connect RUM and Traces" - documentation outdated? HOT 2
- Datadog RUM - swizzle() - main thread UI responsiveness issue HOT 5
- How do all SampleRates work on iOS? HOT 7
- Image render in session replay HOT 2
- Trace support for Apollo client SDK on iOS. HOT 9
- No logs with the v2.7.0 HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dd-sdk-ios.