Sha256: b11da49d96015dfdf6317c3f3fefcd32f07040e9abd1e58f53aadcceb42d3109

Contents?: true

Size: 745 Bytes

Versions: 1

Compression:

Stored size: 745 Bytes

Contents

# Path setting slight of hand you can ignore if not running it for debugging, basically
$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)

# requre the gem
require 'logoris'

# New Logoris instance.
logger = Logoris.new

# Use STDOUT, per usual.
logger.out "Normal stuff."

# Use STDERR, usually for, like, diagnostics for errors
# and stuff like that.
logger.error "Error stuff."


# If you were to run this example, you could check the streams
# are beining handled properly by redirecting the output yourself!
#
# ```shell
# ruby example.rb 2> error.txt
# ```
#
# ```shell
# ruby example.rb > out.txt
# ```
#
# Redirect both to a file? Easy!
# ```shell
# ruby example.rb &> log_em_both.txt
# ```
#
# Do whatever you need to do fam'.

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
logoris-1.0.0 examples/example.rb