This c# code...
class Program
{
static void Main(string[] args)
{
Log.Logger = new LoggerConfiguration()
.MinimumLevel.Debug()
.WriteTo.Console(new EcsTextFormatter())
.CreateLogger();
var user = new Elastic.CommonSchema.User
{
Id = "111",
Name = "test"
};
Log.Information("{@user}", user);
}
}
...puts the 'user' object under '_metadata'. I would have though that because I used an Elastic.CommonSchema.User object, it would have come out at the top level. What am I missing?