stderr
All logs that you wish to display to your users should be written to
stderr
Below are various examples of how to do this is in multiple languages.
C#
Java
NodeJS
PHP
Python
Ruby
using System;
Console.Error.WriteLine("Hello World")
System.err.println("Hello World!");
console.error('Hello World')
fwrite(STDERR, 'Hello World' . PHP_EOL);
import sys
print("Hello World!", file=sys.stderr)
require "logger"
log = Logger.new(STDERR)
log.debug('Hello Word!')
Last modified 2yr ago