Puppet Function: wls_install::log

Defined in:
lib/puppet/functions/wls_install/log.rb
Function type:
Ruby 4.x API

Overview

wls_install::log(Any $msg, Optional[Any] $level = :info)Any

This function logs data from wls_install module.

See the file “LICENSE” for the full license governing this code.

Parameters:

  • msg (Any)
  • level (Optional[Any]) (defaults to: :info)

Returns:

  • (Any)


9
10
11
12
13
14
15
16
17
# File 'lib/puppet/functions/wls_install/log.rb', line 9

Puppet::Functions.create_function(:'wls_install::log') do
  def log(msg, level = :info)
    Puppet::Util::Log.create(
      :level => level,
      :message => msg,
      :source => 'wls_install_functions'
    )
  end
end