ConsoleWriteLineRocksSDK 1.0.0

⭐ Redirects Console.WriteLine() output to any remote browser
⭐ Allows you to remotely watch what your .NET applications want to print on the Console
⭐ This is the most simple, lazy and opportunistic way to make an application remotely observable 🙂

Steps to get you started:
1. Redirect Console.Out and do some Console.WriteLine()
 Console.SetOut( ConsoleWriteLineRocks.Feed("mysecretid") );
 Console.WriteLine("Hello World!");
2. Open http://console.writeline.rocks/feed/mysecretid in a browser
3. Run your application
4. See "Hello World!" arriving to your browser

Check out http://console.writeline.rocks/ for a live demo and more information.

Console.WriteLine() Rocks is a great tool to trace your applications remotely with minial effort and tooling.

"The most effective debugging tool is still careful thought, coupled with judiciously placed print statements."
- Brian Kernighan, 1979

Install-Package ConsoleWriteLineRocksSDK -Version 1.0.0
dotnet add package ConsoleWriteLineRocksSDK --version 1.0.0
paket add ConsoleWriteLineRocksSDK --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

"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

  • Website: http://console.writeline.rocks/
  • NuGet package: https://www.NuGet.org/packages/ConsoleWriteLineRocksSDK/
  • GitHub: https://github.com/david-zoltan/console-writeline-rocks

"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

  • Website: http://console.writeline.rocks/
  • NuGet package: https://www.NuGet.org/packages/ConsoleWriteLineRocksSDK/
  • GitHub: https://github.com/david-zoltan/console-writeline-rocks

Release Notes

## 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" ) );

Version History

Version Downloads Last updated
1.0.0 62 7/21/2018