Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Dynamic items from GlobalContext are null in loggly. #13
Comments
|
Okay thanks for reporting this. We have many other issues in the queue ahead of this one so if you find a fix before us please let us know. |
|
@vvolodin , the logger does not call private class FixedClass : IFixingRequired
{
public int Property1 { get; set; }
public int Property2 { get; set; }
public object GetFixedObject()
{
return ToString();
}
public override string ToString()
{
return "This will be in the logged output";
}
}
GlobalContext.Properties["MyProperty"] = new FixedClass();Now when you log something the JSON sent to Loggly will contain: {
"MyProperty": "This will be in the logged output",
// other properties
} |
Dynamic items added to GlobalContext aren't being processed correctly. If I add an instance of my class there, ToString() doesn't seem to be invoked on it during logging.
The text was updated successfully, but these errors were encountered: