Select your printer model

Parameters are refined by the selected printer.

setLogSettings


Sets the log output function.

Syntax

 
public static void setLogSettings(Context context, int period, int output, String ipAddress, int port, int logSize, int logLevel) throws Epos2Exception

Parameter

context

Specifies the application context.

period

Specifies whether the log output function setting is temporary or permanent.

The configuration file is not created for temporary setting but is created for permanent setting.

Value

Description

PERIOD_TEMPORARY

Temporarily reflects the setting.

PERIOD_PERMANENT

Permanently reflects the setting.

output

Enables or disables the log output function and specifies the log output location.

Value

Description

OUTPUT_DISABLE

Disables the log output function.

OUTPUT_STORAGE

Output to the storage of the terminal.

OUTPUT_TCP

Output via TCP.

ipAddress

Specifies the IP address for TCP communication.

Specifies the IP address in the IPv4 format.

Null can be specified when the log output function is disabled or the log is output to the storage of the terminal.

port

Specifies the port number for TCP communication.

Also specifies a value within the valid range even when the log output function is disabled or the log is output to the storage of the terminal.

Value

Description

Integer from 0 to 65535

Port number

logSize

Specifies the maximum capacity of the log stored in the storage.

Also specifies a value within the valid range even when the log output function is disabled or the log is output to TCP.

Value

Description

Integer from 1 to 1000

Maximum capacity of the log stored (in MB)

logLevel

Specifies the log output level.

Value

Description

LOGLEVEL_LOW

Low level

Exception

When the process fails, Epos2Exception with one of the following error status occurs.

Error status

Description

ERR_PARAM

An invalid parameter was passed.

ERR_FAILURE

An unknown error occurred.

Supplementary explanation

  • To specify period for the PERIOD_PERMANENT, set the permissions for the application to access the storage.
  • To specify output for the OUTPUT_STORAGE, set the permissions for the application to access the storage.
  • To specify output for the OUTPUT_TCP, set the permissions for the application to access the network.
 

Quick Access

  • [Name]
  • [Format]
  • [Range]
  • [Description]
  • [Notes]

Epson ePOS SDK includes patented or patent pending functions. The contents must not be disclosed to third parties.


Epson ePOS SDK for Android

Jump to the top