Flix2_setlogpath – Google Flix Engine Linux Reference Manual User Manual

Page 177

Advertising
background image

5.39 Flix Engine Core Library

171

5.39.2.5

on2sc Flix2_SetLogLevel (FLIX2HANDLE flix, int32_t level)

Set the library-wide debug log level.

Parameters:

← flix Handle to the flix engine returned from

Flix2_Create()

← level The log level to set the library to

Return values:

ON2_OK

on success

ON2_INVALID_PARAMS

should one or more of the preconditions fail

Precondition:

flix

is not NULL

level

is within the range 0-4

Remarks:

Valid values for level are:

• 0= none (Default)

• 1= informational

• 2= errors+asserts

• 3= debug

• 4= heavy/program trace logging

5.39.2.6

on2sc Flix2_SetLogPath (FLIX2HANDLE flix, on2tc ∗ logpath)

Set the library’s log file path.

The log file is opened for appending whenever a log message needs to be written and closed immediately
thereafter.

Parameters:

← flix Handle to the flix engine returned from

Flix2_Create()

← logpath Path to the log file

Return values:

ON2_OK

the engine successfully set the log file

ON2_INVALID_PARAMS

should one or more of the preconditions fail

ON2_NO_MEM

an error occurred allocating memory for logpath

Precondition:

flix

is not NULL

logpath

is not NULL

Note:

No attempt is made to ensure the file can be created by this function, nor will it create any non-existent
directories in logpath.

Generated on Tue Jul 20 17:39:03 2010 for Flix Engine Linux by Doxygen

Advertising