Method: Hanami::Config::Logger#stream

Defined in:
lib/hanami/config/logger.rb

#streamString, #write

Sets or returns the logger’s stream.

This can be a file path or an IO-like object for the logger to write to.

Defaults to ‘“log/test.log”` for the test environment and `$stdout` for all others.

Returns:

  • (String, #write)

Since:

  • 2.0.0



49
# File 'lib/hanami/config/logger.rb', line 49

setting :stream, default: $stdout