How to use the logentries.le.FatalConfigurationError 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 / le.py View on Github external
self.force_domain = new_force_domain
            if self.datahub == NOT_SET:
                self.set_datahub_settings(
                    conf.get(MAIN_SECT, DATAHUB_PARAM), should_die=False)
            if self.system_stats_token == NOT_SET:
                system_stats_token_str = conf.get(
                    MAIN_SECT, SYSSTAT_TOKEN_PARAM)
                if system_stats_token_str != '':
                    self.system_stats_token = system_stats_token_str

            self.metrics.load(conf)

            self.load_configured_logs(conf)

        except ConfigParser.NoSectionError, e0:
            raise FatalConfigurationError('%s'%e0)
        except ConfigParser.NoOptionError, e1:
            raise FatalConfigurationError('%s'%e1)
        except ConfigParser.MissingSectionHeaderError, e2:
            raise FatalConfigurationError('%s'%e2)
        return True
github LogentriesCommunity / le_openshift / logentries / le.py View on Github external
def main():
    try:
        main_root()
    except FatalConfigurationError, e:
        log.error("Fatal: %s", e.msg)
    except KeyboardInterrupt:
        die("\nTerminated", EXIT_TERMINATED)