« Close

Datasheets and User Guides

App Notes

Software & Driver




LJM_DEBUG_LOG_FILE_MAX_SIZE is a numerical readable-writable LJM library configuration that limits the number of characters in the debug log file. Once the debug log file has exceeded LJM_DEBUG_LOG_FILE_MAX_SIZE characters, it will be reset to 0 characters and debug logging will continue. The largest LJM_DEBUG_LOG_FILE_MAX_SIZE you may use is the largest file size of your operating system. The default is 50000 characters.

The constant LJM_DEBUG_LOG_FILE_MAX_SIZE can be used interchangeably with the string "LJM_DEBUG_LOG_FILE_MAX_SIZE".

Relevant Functions

To read LJM_DEBUG_LOG_FILE_MAX_SIZE, use LJM_ReadLibraryConfigS.

To write LJM_DEBUG_LOG_FILE_MAX_SIZE, use LJM_WriteLibraryConfigS or LJM_LoadConfigurationFile.


[C/C++] Set LJM_DEBUG_LOG_FILE_MAX_SIZE to a larger-than-default size

char ErrorString[LJM_MAX_NAME_SIZE];
int LJMError;
LJMError = LJM_WriteLibraryConfigS(LJM_DEBUG_LOG_FILE_MAX_SIZE, 123456789);
if (LJMError != 0) {
    LJM_ErrorToString(LJMError, ErrorString);
    printf("LJM_WriteLibraryConfigS error: %s\n", ErrorString);

For more LJM configurations, see Library Configuration Functions.