def _default_logfile(exe_name):
 if salt.utils.is_windows():
  tmp_dir = os.path.join(__opts__['cachedir'], 'tmp')
  if (not os.path.isdir(tmp_dir)):
   os.mkdir(tmp_dir)
  logfile_tmp = tempfile.NamedTemporaryFile(dir=tmp_dir, prefix=exe_name, suffix='.log', delete=False)
  logfile = logfile_tmp.name
  logfile_tmp.close()
 else:
  logfile = salt.utils.path_join('/var/log', '{0}.log'.format(exe_name))
 return logfile

def _default_logfile ( exe_name ) : if salt . utils . is_windows ( ) : tmp_dir = os . path . join ( __opts__ [ 'cachedir' ] , 'tmp' ) if ( not os . path . isdir ( tmp_dir ) ) : os . mkdir ( tmp_dir ) logfile_tmp = tempfile . NamedTemporaryFile ( dir = tmp_dir , prefix = exe_name , suffix = '.log' , delete = False ) logfile = logfile_tmp . name logfile_tmp . close ( ) else : logfile = salt . utils . path_join ( '/var/log' , '{0}.log' . format ( exe_name ) ) return logfile
retrieve the logfile name .