def application_summary(logfile_count):  # todo: move this method to app_info.py
    """
    Return a string summarizing general info about the application. This will be output at the start of every logfile.

    :param logfile_count: The number of logfiles the application has created during its current execution
    :type logfile_count: int
    """
    separator = '*' * 50
    summary_lines = [
        ' ClusterRunner',
        '  * Version:    {}'.format(autoversioning.get_version()),
        '  * PID:        {}'.format(os.getpid()),
        '  * Session id: {}'.format(SessionId.get()),
    ]
    if logfile_count > 1:
        summary_lines.append('  * Logfile count: {}'.format(logfile_count))

    return '\n{0}\n{1}\n{0}\n'.format(separator, '\n'.join(summary_lines))
dataset/ETHPy150Open box/ClusterRunner/app/util/log.py/application_summary/original