{"action":"created","issue":{"url":"https://api.github.com/repos/NLog/NLog/issues/1486","repository_url":"https://api.github.com/repos/NLog/NLog","labels_url":"https://api.github.com/repos/NLog/NLog/issues/1486/labels{/name}","comments_url":"https://api.github.com/repos/NLog/NLog/issues/1486/comments","events_url":"https://api.github.com/repos/NLog/NLog/issues/1486/events","html_url":"https://github.com/NLog/NLog/issues/1486","id":157162566,"number":1486,"title":"Use Ansi Color Codes for ColoredConsoleTarget on Linux/.Net Core","user":{"login":"jp7677","id":17219293,"avatar_url":"https://avatars.githubusercontent.com/u/17219293?v=3","gravatar_id":"","url":"https://api.github.com/users/jp7677","html_url":"https://github.com/jp7677","followers_url":"https://api.github.com/users/jp7677/followers","following_url":"https://api.github.com/users/jp7677/following{/other_user}","gists_url":"https://api.github.com/users/jp7677/gists{/gist_id}","starred_url":"https://api.github.com/users/jp7677/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jp7677/subscriptions","organizations_url":"https://api.github.com/users/jp7677/orgs","repos_url":"https://api.github.com/users/jp7677/repos","events_url":"https://api.github.com/users/jp7677/events{/privacy}","received_events_url":"https://api.github.com/users/jp7677/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/NLog/NLog/labels/.NET%20core%20/%20DNX","name":".NET core / DNX","color":"5319e7"},{"url":"https://api.github.com/repos/NLog/NLog/labels/feature","name":"feature","color":"02e10c"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":19,"created_at":"2016-05-27T09:08:29Z","updated_at":"2016-07-13T20:44:44Z","closed_at":null,"body":"Hi there,\r\n\r\nThanks a lot for already providing a beta for .Net Core RC2. It already works pretty cool!\r\n\r\nI would love to use the ColoredConsoleTarget on Linux. Unfortunately the output is on my Linux box identical with the normal ConsoleTarget, thus no colors. I guess because Console.ForegrondColor and friends are quite different on Linux, of even not implemented on those platforms. Looking at Microsoft's own Aspnet Core Logger they make a distinction between Windows and Non-windows. On Non-Windows they use the regular System.Console class too, but use Ansi Color codes as message prefix instead of using Console.ForegrondColor. See here [https://github.com/aspnet/Logging/blob/dev/src/Microsoft.Extensions.Logging.Console/Internal/AnsiLogConsole.cs](https://github.com/aspnet/Logging/blob/dev/src/Microsoft.Extensions.Logging.Console/Internal/AnsiLogConsole.cs) and [https://github.com/aspnet/Logging/blob/dev/src/Microsoft.Extensions.Logging.Console/ConsoleLogger.cs](https://github.com/aspnet/Logging/blob/dev/src/Microsoft.Extensions.Logging.Console/ConsoleLogger.cs).\r\n\r\nProbably Nlog should do something similar. I guess using Ansi Color Code is also slightly faster..\r\n\r\nRegards and thanks a lot for your work.\r\nJens"},"comment":{"url":"https://api.github.com/repos/NLog/NLog/issues/comments/232480965","html_url":"https://github.com/NLog/NLog/issues/1486#issuecomment-232480965","issue_url":"https://api.github.com/repos/NLog/NLog/issues/1486","id":232480965,"user":{"login":"304NotModified","id":5808377,"avatar_url":"https://avatars.githubusercontent.com/u/5808377?v=3","gravatar_id":"","url":"https://api.github.com/users/304NotModified","html_url":"https://github.com/304NotModified","followers_url":"https://api.github.com/users/304NotModified/followers","following_url":"https://api.github.com/users/304NotModified/following{/other_user}","gists_url":"https://api.github.com/users/304NotModified/gists{/gist_id}","starred_url":"https://api.github.com/users/304NotModified/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/304NotModified/subscriptions","organizations_url":"https://api.github.com/users/304NotModified/orgs","repos_url":"https://api.github.com/users/304NotModified/repos","events_url":"https://api.github.com/users/304NotModified/events{/privacy}","received_events_url":"https://api.github.com/users/304NotModified/received_events","type":"User","site_admin":false},"created_at":"2016-07-13T20:44:44Z","updated_at":"2016-07-13T20:44:44Z","body":":+1: thanks"}}
{"actor":{"display_login":"304NotModified"}}