Skip to content

Log File Output Function

The logs can be retrieved and the log files can be output using the library.

How to Set Log Output

Log output settings can be configured by adding the config.ini file to the application directory.
Application directories vary depending on platform.

Platform Directory
iOS Documents folder in the iOS application that incorporates the library
Android Specific directory in the Android application that incorporates the library
(e.g. internal shared storage\Android\data\\files).

The following information is provided in the config.ini file:

LOGLEVEL=x
LOGSIZEMAX=xMB
LOGOUTPUT=x

Set the following values for x, depending on the log content to be output.

Name Description Settings
LOGLEVEL Log level 0 : Not record the log.
1 : Records an error log when exception error is thrown.
2 : Records API execution history.
LOGSIZEMAX Log file maximum size 1MB : Log file maximum size is 1 MB
5MB : Log file maximum size is 5 MB
10MB : Log file maximum size is 10 MB
50MB : Log file maximum size is 50 MB
LOGOUTPUT Console output enabled/disabled 0 : Console output is disabled
1 : Console output is enabled

Log File

Log files are saved as local files in the application that incorporates the library.
Log file name : Slp8PrinterManagerX.log (range of X is 0 to 4)
The 1st log file is created as Slp8PrinterManager0.log. If the log file maximum size is exceeded, changes the file name to Slp8PrinterManager1.log and creates a new Slp8PrinterManager0.log.
Up to 5 log files can be created.