Skip to content

Napier shows Napier.i tag on iOS instead of real source #134

@okmyan

Description

@okmyan

I’m using Napier 2.7.1 with Kotlin 2.2.20 in a Kotlin Multiplatform project.

Here is the tag I'm using:
Napier.i { "Button clicked" }

On Android, Napier correctly resolves the call site (file and function) as the log tag:

Image

But on iOS, Napier shows only Napier.i as the tag, instead of the source file/function

Image

Question

Is it possible to have Napier automatically display the correct call site on iOS (similar to Android) without explicitly passing a tag in each log call?

If this limitation is due to Kotlin/Native stack traces, would it make sense to document it or provide a recommended workaround?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions