debug

splunkjs.ModularInputs.Logger.debug

Logs messages about the state of this modular input to Splunk. These messages will show up in Splunk's internal logs.

Syntax

root.debug = function (name, message, stream)

Parameters

Name Type Description
name String

The name of this modular input.

message String

The message to log.

stream Object

(Optional) A stream to write log messages to, defaults to process.stderr.

error

splunkjs.ModularInputs.Logger.error

Logs messages about the state of this modular input to Splunk. These messages will show up in Splunk's internal logs.

Syntax

root.error = function (name, message, stream)

Parameters

Name Type Description
name String

The name of this modular input.

message String

The message to log.

stream Object

(Optional) A stream to write log messages to, defaults to process.stderr.

fatal

splunkjs.ModularInputs.Logger.fatal

Logs messages about the state of this modular input to Splunk. These messages will show up in Splunk's internal logs.

Syntax

root.fatal = function (name, message, stream)

Parameters

Name Type Description
name String

The name of this modular input.

message String

The message to log.

stream Object

(Optional) A stream to write log messages to, defaults to process.stderr.

info

splunkjs.ModularInputs.Logger.info

Logs messages about the state of this modular input to Splunk. These messages will show up in Splunk's internal logs.

Syntax

root.info = function (name, message, stream)

Parameters

Name Type Description
name String

The name of this modular input.

message String

The message to log.

stream Object

(Optional) A stream to write log messages to, defaults to process.stderr.

warn

splunkjs.ModularInputs.Logger.warn

Logs messages about the state of this modular input to Splunk. These messages will show up in Splunk's internal logs.

Syntax

root.warn = function (name, message, stream)

Parameters

Name Type Description
name String

The name of this modular input.

message String

The message to log.

stream Object

(Optional) A stream to write log messages to, defaults to process.stderr.