public void WritePretty(object content) { ConsoleSpiner.StopLoading(); var serializer = new SerializerBuilder().Build(); var yaml = serializer.Serialize(content); Console.WriteLine(yaml); }
public void Write(object message) { ConsoleSpiner.StopLoading(); Console.WriteLine(JsonConvert.SerializeObject(message, new JsonSerializerSettings { Formatting = Formatting.Indented })); }