-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
52 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace PtouchPrintSender | ||
{ | ||
class MyLogger | ||
{ | ||
private MyLogger() | ||
{ | ||
|
||
} | ||
|
||
//public static void Info(string format, params object[] args) | ||
//{ | ||
// var timestamp = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fff"); | ||
// var line = string.Format(format, args); | ||
// Console.WriteLine($"{timestamp} [INFO] {line}"); | ||
//} | ||
|
||
public static void Info(params object[] args) | ||
{ | ||
var timestamp = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fff"); | ||
var line = string.Join("", args); | ||
Console.WriteLine($"{timestamp} [INFO] {line}"); | ||
} | ||
|
||
//public static void Error(string format, params object[] args) | ||
//{ | ||
// var timestamp = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fff"); | ||
// var line = string.Format(format, args); | ||
// Console.WriteLine($"{timestamp} [ERROR] {line}"); | ||
//} | ||
|
||
public static void Error(params object[] args) | ||
{ | ||
var timestamp = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fff"); | ||
var line = string.Join("", args); | ||
Console.WriteLine($"{timestamp} [ERROR] {line}"); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters