Skip to content
This repository was archived by the owner on Jun 2, 2018. It is now read-only.
This repository was archived by the owner on Jun 2, 2018. It is now read-only.

When using Logger.InfoFormat(), Loggly shows "objectinfo":{"__type":"log4net.Util.SystemStringFormat, log4net"}" instead of the actual message #4

@urigrumble

Description

@urigrumble

To reproduce:
With log4net-loggly set up as an appender, call ILog.InfoFormat() like so:
log.InfoFormat("Hello, {0}!", "World");

In the loggly dashboard, where you would typically see the string message, you will instead see: "objectinfo":{"__type":"log4net.Util.SystemStringFormat, log4net"}

This applies to all xxxFormat() type methods including:

  • DebugFormat()
  • InfoFormat()
  • WarnErrorFormat()
  • ErrorFormat()

Reproduced on master commit 794fa09 (and on v2.0.0 from NuGet)

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