Skip to content

Commit

Permalink
modify file name
Browse files Browse the repository at this point in the history
  • Loading branch information
hiram3512 committed Aug 26, 2019
1 parent fe4bdfd commit fc8e948
Show file tree
Hide file tree
Showing 9 changed files with 6 additions and 8 deletions.
Binary file modified HiLog/HiLog.dll
Binary file not shown.
Binary file modified HiLog/HiLog.pdb
Binary file not shown.
4 changes: 2 additions & 2 deletions visual/HiLog/LogScreenInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
using UnityEngine;
namespace HiLogHelper
{
public class LogScreenInfo
internal class LogScreenInfo
{
public string Condition { get; private set; }
public string StackTrace { get; private set; }
public LogType Type { get; private set; }

public LogScreenInfo(string condition, string stackTrace, LogType type)
{
this.Condition = LogTime.GetTime() + condition;
this.Condition = LogTime.GetTimeFormat() + condition;
this.StackTrace = stackTrace;
this.Type = type;
}
Expand Down
4 changes: 2 additions & 2 deletions visual/HiLog/LogText.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ internal class LogText
{
private string HiLogFilePath
{
get { return HiLog.HiLogTextFolder + "/HiLog" + LogTime.GetDate() + ".txt"; }
get { return HiLog.HiLogTextFolder + "/HiLog_" + LogTime.GetDate() + ".txt"; }
}

public LogText()
Expand All @@ -31,7 +31,7 @@ public LogText()
public void Text(string condition, string stackTrace, LogType type)
{
var typeInfo = string.Format("[{0}]", type.ToString());
var log = typeInfo + LogTime.GetTime() + condition;
var log = typeInfo + LogTime.GetTimeFormat() + condition;
var sw = File.AppendText(HiLogFilePath);
sw.WriteLine(log + "\n" + stackTrace);
sw.Close();
Expand Down
5 changes: 2 additions & 3 deletions visual/HiLog/LogTime.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,15 @@ namespace HiLogHelper
{
internal static class LogTime
{
internal static string GetTime()
internal static string GetTimeFormat()
{
var str = DateTime.Now.ToString("yyyy.MM.dd HH:mm:ss");
return string.Format("[{0}]", str);
}

internal static string GetDate()
{
var str = DateTime.Now.ToString("yyyyMMdd");
return string.Format("[{0}]", str);
return DateTime.Now.ToString("yyyyMMdd");
}
}
}
1 change: 0 additions & 1 deletion visual/HiLog/obj/Debug/HiLog.csproj.FileListAbsolute.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,3 @@ D:\MyGit\github\HiLog_unity\visual\HiLog\obj\Debug\HiLog.dll
D:\MyGit\github\HiLog_unity\visual\HiLog\obj\Debug\HiLog.pdb
D:\MyGit\github\HiLog_unity\HiLog\HiLog.dll
D:\MyGit\github\HiLog_unity\HiLog\HiLog.pdb
D:\MyGit\github\HiLog_unity\visual\HiLog\obj\Debug\HiLog.csprojAssemblyReference.cache
Binary file not shown.
Binary file modified visual/HiLog/obj/Debug/HiLog.dll
Binary file not shown.
Binary file modified visual/HiLog/obj/Debug/HiLog.pdb
Binary file not shown.

0 comments on commit fc8e948

Please sign in to comment.