Ir al contenido principal

Entradas

Mostrando entradas de julio, 2022

Managing log files

  Fuente original:  https://lvexpertisex3.com/x3help/FRA/V7DEV/developer-guide_managing-log-files.html Definition When batch procedures or complex tasks are managed, it is important to generate log files that will be displayed after the operation is finished. In Sage X3 version 6, a set of sub-programs exists, named  OUVRE_TRACE  and  ECR_TRACE ... . In version 7, a new set of functions are implemented in the supervisor layer. They create and fill the same format of a log file, but they are more appropriate to use when working with classes and methods. . The ALOG Class To create a log file, you must instantiate an 'ALOG' class. After this instance exists, different methods will allow you to write log files. They are all called by  Fmet : ASETNAME(FILE_NAME) Defines the log file name. If this method is not used, the name will be "F" followed by an incremental number defined by '[C]NUMIMP' current pointer value. Use this method after the instantiation or after u