Esempio n. 1
0
 def __create_logpath_group(statements=None, flags=None):
     logpath = LogPath()
     if statements:
         logpath.add_groups(statements)
     if flags:
         logpath.add_flags(cast_to_list(flags))
     return logpath
Esempio n. 2
0
 def __create_logpath_group(statements=None, flags=None):
     logpath = LogPath()
     if statements:
         logpath.add_groups(statements)
     if flags:
         logpath.add_flags(cast_to_list(flags))
     return logpath
Esempio n. 3
0
 def create_logpath(self, sources, destinations):
     logpath = LogPath()
     logpath.add_source_groups(sources)
     logpath.add_destination_groups(destinations)
     self.__syslog_ng_config["logpaths"].update(logpath.full_logpath_node)
     return logpath