Logo: Relish

  1. Sign in

Project: Trema

logger#debug

Background
Given
I set the environment variables to:
variable value
TREMA_LOG_DIR .
TREMA_PID_DIR .
TREMA_SOCKET_DIR .
And
a file named "hello.rb" with:
class Hello < Trema::Controller
  def start(_args)
    logger.debug 'Konnichi Wa'
  end
end
Scenarios
  • @sudo
the default logging level
When
I trema run "hello.rb" interactively
And
I trema killall "Hello"
Then
the output should not contain "Konnichi Wa"
And
the file "Hello.log" should not contain "DEBUG -- : Konnichi Wa"
  • @sudo
--logging_level debug
When
I trema run "hello.rb" with args "--logging_level debug" interactively
And
I trema killall "Hello"
Then
the output should contain "Konnichi Wa"
And
the file "Hello.log" should contain "DEBUG -- : Konnichi Wa"
  • @sudo
-v
When
I trema "-v" run "hello.rb" interactively
And
I trema killall "Hello"
Then
the output should contain "Konnichi Wa"
And
the file "Hello.log" should contain "DEBUG -- : Konnichi Wa"
  • @sudo
--verbose
When
I trema "--verbose" run "hello.rb" interactively
And
I trema killall "Hello"
Then
the output should contain "Konnichi Wa"
And
the file "Hello.log" should contain "DEBUG -- : Konnichi Wa"

Last published over 3 years ago by Yasuhito Takamiya.