Module: AdGear::Infrastructure::GroupManager::Logging

Included in:
App, Config, LDAP, Utils
Defined in:
lib/logging.rb

Overview

The global logging instance. Uses the Ougai JSON structured logger.

Since:

  • 0.1.0

Constant Summary collapse

Log =

Since:

  • 0.1.0

Ougai::Logger.new(STDERR)

Class Method Summary collapse

Class Method Details

.fatal(*args) ⇒ nil

A helper method that allows to log an error and exit.

Parameters:

  • args (Array)

    passes all arguments, as is, to Ougai.

Returns:

  • (nil)

    no return.

Since:

  • 0.1.0



25
26
27
28
# File 'lib/logging.rb', line 25

def fatal(*args)
  Log.error(*args)
  exit(1)
end