OptionalserviceName: stringOptional service name included in log output.
When omitted the OTLP exporter's resource attributes (e.g.
service.name) are used instead — this is the recommended approach
so that the service name is configured in a single place.
Dual output:
console[level] (Cloudflare Workers).LoggerProvider if one is registered.Every method is wrapped in try-catch — never throws.
Create a structured Logger.