コード例 #1
0
ファイル: HostLogger.cs プロジェクト: optikos/MIEngine
        /// <summary>
        /// Get a logger after the user has explicitly configured a log file/callback
        /// </summary>
        /// <param name="logFileName"></param>
        /// <param name="callback"></param>
        /// <returns>The host logger object</returns>
        public static HostLogger GetLoggerFromCmd(string logFileName, HostLogger.OutputCallback callback)
        {
            StreamWriter writer = HostLogger.GetStreamForName(logFileName, throwInUseError: true);

            return(new HostLogger(writer, callback));
        }
コード例 #2
0
ファイル: HostLogger.cs プロジェクト: optikos/MIEngine
 /// <summary>
 /// Get a logger after the user has explicitly configured a log file/callback
 /// </summary>
 /// <param name="logFileName"></param>
 /// <param name="callback"></param>
 /// <returns>The host logger object</returns>
 public static HostLogger GetLoggerFromCmd(string logFileName, HostLogger.OutputCallback callback)
 {
     throw new NotImplementedException();
 }