Select your printer model

Parameters are refined by the selected printer.

setLogSettings


Sets the log output function.

Syntax

 
+(int) setLogSettings:(int) period output:(int) output ipAddress:(NSString *)ipAddress port:(int)port logSize:(int)logSize logLevel:(int)logLevel;

Parameter

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

EPOS2_PERIOD_TEMPORARY

Temporarily reflects the setting.

EPOS2_PERIOD_PERMANENT

Permanently reflects the setting.

output

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

Value

Description

EPOS2_OUTPUT_DISABLE

Disables the log output function.

EPOS2_OUTPUT_STORAGE

Output to the storage of the terminal.

EPOS2_OUTPUT_TCP

Output via TCP.

ipAddress

Specifies the IP address for TCP communication.

Specifies the IP address in the IPv4 format.

nil 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

EPOS2_LOGLEVEL_LOW

Low level

Return value

Error status

If the process succeeds, EPOS2_SUCCESS will be returned.

If the process fails, one of the following values be returned.

Error status

Description

EPOS2_ERR_PARAM

An invalid parameter was passed.

EPOS2_ERR_FAILURE

An unknown error occurred.

Supplementary explanation

When setting output to EPOS2_OUTPUT_STORAGE, enable the file sharing setting of iTunes. Follow the procedure below.

  1. Add "UIFileSharingEnabled" to nfo.plist of the application. Automatically changed to "Application supports iTunes file sharing".
  2. Set Value of "Application supports iTunes file sharing" to "YES."
 

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 iOS

Jump to the top