How to use the logentries.le.Follower function in Logentries

To help you get started, we’ve selected a few Logentries examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github LogentriesCommunity / le_openshift / logentries / View on Github external
# Use plain formatter if no formatter is defined
                transport = Transport(endpoint, port, use_ssl, preamble, config.debug_transport_events,
                                      (config.proxy_type, config.proxy_url, config.proxy_port))
                # Default formatter is plain
                if not entry_formatter:
                    entry_formatter = formats.get_formatter('plain', config.hostname, log_name, log_token)

            # Default formatter is syslog
            if not entry_formatter:
                entry_formatter = formats.get_formatter('syslog', config.hostname, log_name, log_token)

            # Instantiate the follower
            follower = Follower(log_filename, entry_filter, entry_formatter, entry_identifier, transport)
    return (followers, transports)