Skip to content

Guidance for PlainTextZLoggerFormatter with scopes #205

@Xpl0itR

Description

@Xpl0itR

I see that LogInfo has ScopeState property, but i am not sure how to format it into the log prefix efficiently.

For example, using Microsoft.Extensions.Logging.Console, I have the following log:

dbug: LibProtodec.CilProtodecContext[1525321048]
      => Parsing message from type "ProtoObject.SimCombatWeekly" => Parsing property "StepB" of type "ProtoObject.SimCombatWeekStepB"
      Parsed as message field "step_b" with id "17" of type ".SimCombatWeekStepB".

The first line comes from the scope, the second from the log. I would like to recreate something similar to this with ZLogger.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions