ConsoleWriteLineRocksSDK 1.0.0
dotnet add package ConsoleWriteLineRocksSDK --version 1.0.0
NuGet\Install-Package ConsoleWriteLineRocksSDK -Version 1.0.0
<PackageReference Include="ConsoleWriteLineRocksSDK" Version="1.0.0" />
paket add ConsoleWriteLineRocksSDK --version 1.0.0
#r "nuget: ConsoleWriteLineRocksSDK, 1.0.0"
// Install ConsoleWriteLineRocksSDK as a Cake Addin #addin nuget:?package=ConsoleWriteLineRocksSDK&version=1.0.0 // Install ConsoleWriteLineRocksSDK as a Cake Tool #tool nuget:?package=ConsoleWriteLineRocksSDK&version=1.0.0
"Console.WriteLine() Rocks" is a one-line alternative to complex logging solutions for .NET developers. It lets you see in a remote browser what your .NET applications print on their console, by redirecting the Console.WriteLine() messages to a unique-URL webpage.
Sample Usage
1. Install the NuGet package
PM> Install-Package ConsoleWriteLineRocksSDK
2. Pick a unique name, for example: YOUR-SECRET-ID
This will serve as a feed name. Your applications will Console.WriteLine() into that feed. You can see what is written into that feed by opening http://console.writeline.rocks/feed/YOUR-SECRET-ID in a browser.
3. Create a Console Application
using System;
using ConsoleWriteLineRocksSDK;
class Program
{
static void Main(string[] args)
{
Console.SetOut( ConsoleWriteLineRocks.Feed("YOUR-SECRET-ID") );
// you can use any feed name you like (it's a good idea to choose a unique one)
Console.WriteLine("Hello World!");
Console.ReadKey();
// it takes a few millisecs to capture Console.WriteLine() output
// not a problem in production environments with long running apps
}
}
4. Open http://console.writeline.rocks/feed/YOUR-SECRET-ID in a browser
You will see the Console.WriteLine() messages appear here. Only those messages will appear which are printed after you have opened the browser.
5. Run your application
Your application's Console.WriteLine() messages will be printed into the browser instead of the application's local console.
Free & Anonymous
It is absolutely anonymous and free to use. No registration or credit card is required. "Console.WriteLine() Rocks" writes no logs.
Print Debugging
"Console.WriteLine() Rocks" acknowledges the fact that "print debugging" is still a favorite tracing technique used by many developers today (even if they don't admit it publicly). By adding just one line of code to your .NET applications, "Console.WriteLine() Rocks" enables you to see all those console "print debug" messages in a browser.
Architecture
"Console.WriteLine() Rocks" consists of
- a free online service hosted in the cloud (it's like an online console that you can check in a browser),
- and a NuGet package that lets you integrate your application with the online service.
Technology
The technology behind "Console.WriteLine() Rocks" is
- async HTTP posts, to send the Console.WriteLine() messages to the "Console.WriteLine() Rocks" backend for further distribution,
- Server Side Events for distributing those messages to the browsers,
- implemented with ASP.NET Core,
- currently hosted on Ubuntu Linux,
- no databases - "Console.WriteLine() Rocks" stores nothing on its servers.
More information
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 is compatible. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Framework | net20 is compatible. net35 was computed. net40 is compatible. net403 was computed. net45 was computed. net451 was computed. net452 was computed. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
-
- Newtonsoft.Json (>= 11.0.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.0 | 1,444 | 7/21/2018 |
## Features
This is the initial release with minimal feature set
- can redirect Console.Write() and Console.WriteLine() output
- you can see redirected output in a browser at http://console.writeline.rocks/feed/mysecretid
- one line setup in C# applications: Console.SetOut( ConsoleWriteLineRocks.Feed( "mysecretid" ) );
- can redirect Console.Error.Write() and Console.Error.WriteLine() too - just use Console.SetOut( ConsoleWriteLineRocks.Feed( "mysecreterrorfeedid" ) );