Class: Ansible::Ruby::Modules::Syslogger

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/notification/syslogger.rb

Overview

Uses syslog to add log entries to the host. Can specify facility and priority.

Instance Method Summary collapse

Methods inherited from Base

#ansible_name, #to_h

Methods inherited from Ansible::Ruby::Models::Base

attr_option, attr_options, attribute, fix_inclusion, #initialize, remove_existing_validations, #to_h, validates

Constructor Details

This class inherits a constructor from Ansible::Ruby::Models::Base

Instance Method Details

#facility:kern, ...

Returns Set the log facility.

Returns:

  • (:kern, :user, :mail, :daemon, :auth, :lpr, :news, :uucp, :cron, :syslog, :local0, :local1, :local2, :local3, :local4, :local5, :local6, :local7, nil)

    Set the log facility



21
# File 'lib/ansible/ruby/modules/generated/notification/syslogger.rb', line 21

attribute :facility

#log_pid:yes, ...

Returns Log the pid in brackets.

Returns:

  • (:yes, :no, nil)

    Log the pid in brackets



25
# File 'lib/ansible/ruby/modules/generated/notification/syslogger.rb', line 25

attribute :log_pid

#msgString

Returns This is the message to place in syslog.

Returns:

  • (String)

    This is the message to place in syslog



13
# File 'lib/ansible/ruby/modules/generated/notification/syslogger.rb', line 13

attribute :msg

#priority:emerg, ...

Returns Set the log priority.

Returns:

  • (:emerg, :alert, :crit, :err, :warning, :notice, :info, :debug, nil)

    Set the log priority



17
# File 'lib/ansible/ruby/modules/generated/notification/syslogger.rb', line 17

attribute :priority