71
CITIZEN UWP POS Print SDK - Programming Manual
Log file name
The extension of log files is ".log". In the file name, a numeric character which means the day of week
is followed to ”
CSJPOSLib
”. The numeric character is from 0 to 6. "0" means Sunday, "1" means Monday.
Example: CSJPOSLib_1.log
If a log file is already existing and it is older than today, it will be deleted, and the log data will be
recorded into a new file. (It will be held for one week.)
Log format
A log file keeps information of the executed methods, accessed properties, timestamps and results.
--- Example 1 of method (Connect) ---
2019/12/24 13:31:44.138 9636 011 METHOD call ConnectAsync(0, "192.168.10.100")
2019/12/24 13:31:45.684 9636 011 METHOD result ConnectAsync() -> Success(0)
--- Example 2 of method (PrintText) ---
2019/12/24 13:31:50.141 9636 011 METHOD call PrintTextAsync([See below], 1, 1, 0)
-----------------Parameter Detail----------------------
Print text 1
Print text 2
-------------------------------------------------------
2019/12/24 13:31:50.634 9636 011 METHOD result PrintTextAsync() -> Success(0)
--- Example to set to properties ---
2019/12/24 13:35:23.021 4488 008 PROPERTY set RecLineSpacing <- 24 : Success(0)
--- Example to get from properties ---
2019/12/24 13:39:29.037 4488 008 PROPERTY get RecLineSpacing -> 24
* When this SDK works with logging, it performs uncomfortably because a log file will be updated
at every method and accessing properties.
* Because of the following reasons or else, log data will not be stored without any notification.
- A folder where is not under the local folder is specified.
- A folder or file without permission is specified.
- A write-protected log file is already existing.
- Another program (such as a text editor) is using (locking) the log file.
- There is not enough space to store log data in the device.
2.4.3. About printing UTF-8 encode characters
This SDK supports printing UTF-8 encoded characters.
This feature is focusing on providing a way to interoperate East Asian legacy double-byte character sets
for Japanese, Korean, Simplified and Traditional Chinese.