NiFi Ingest 12.12

# get_log

DEPRECATED: This version of the `get_log` function is deprecated in NiFi Ingest 11.4.0 and later.

This version of the function is still available for existing implementations, but it might be incompatible with new functionality. This version of the function might be removed in future.

Micro Focus recommends that you use the function `get_log( log_type )` instead.

The `get_log` function reads a configuration file and returns a LuaLog object that provides the capability to use the specified log stream.

## Syntax

    get_log( config, logstream )

## Arguments

Argument | Description
--- | ---
`config` | (LuaConfig) A LuaConfig object that represents the configuration file which contains the log stream. You can obtain a LuaConfig object using the function get_config.
`logstream` | (string) The name of the section in the configuration file that contains the settings for the log stream.

## Returns

(LuaLog). A LuaLog object that provides the capability to use the log stream.

## Example

    local config = get_config("connector.cfg")
    local log = get_log(config, "SynchronizeLogStream")

© Copyright 2018-2022 Micro Focus or one of its affiliates
Version 12.12 | Last updated June 2022

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to swpdl.idoldocsfeedback@microfocus.com.

We appreciate your feedback!

Product: IDOL NiFi Ingest 12.12

Topic Title: get_log