star-micronics / StarXpand-SDK-Android

StarXpand SDK for Android is a software development kit for supporting application development for Star Micronics devices.
https://star-m.jp/starxpandsdk-oml.html
Other
13 stars 1 forks source link

Logs file not generated #26

Open zaibniazinnowi opened 2 months ago

zaibniazinnowi commented 2 months ago

Description

We are using below method
StarIO10Logger.getInstance(context).start() to generate log files but unable to find any generated file in local storage.

Your device where the bug occurs

Your printer

Tatsuki-Yamamoto2731 commented 2 months ago

@zaibniazinnowi You need to use Device Explorer with Android Studio to find the log files.

  1. Open Android Studio
  2. Open the "Device Explorer" tab (it may be on the right side)
  3. You can find the log files in "/data/data/com.starmicronics.stario10/logs"

Cloud you please try it?

zaibniazinnowi commented 2 months ago

printer @Tatsuki-Yamamoto2731 I do not find in the mentioned path and screenshot is attached. Is storage permission required for logs file to be created?

zaibniazinnowi commented 1 month ago

@Tatsuki-Yamamoto2731
Please respond ASAP

KHosozawa commented 1 month ago

Sorry for the delay in responding. I will answer on behalf of @Tatsuki-Yamamoto2731 .

Sorry, there was an error in the location of the log file. The correct location is as follows

/data/data/(Application ID)/files/com.starmicronics.stario10/logs

(Application ID) should be your app's ID

If there is no file here either, please check and try the following points to identify the cause of the problem:

  1. Check if the device name selected in Device Explorer is correct.
  2. Check if the sample code in this project outputs a log file.
    • Change PrinterActivity.kt to the following contents.
    • If not, please try other devices.
  3. If you have any reproduction code, could you please provide it to us?

Thank you in advance.

zaibniazinnowi commented 1 month ago

@KHosozawa Thank you for your response. Is it possible to change the directory to downloads so we can easily pull the logs from our customers devices as current location is restricted and cannot be accessible without android studio?

KHosozawa commented 1 month ago

@zaibniazinnowi Unfortunately, there is no ability to change the folder to which logs are output. The application must stop log output and move the log file to a different location.