Logging

  • 26 Feb

    Global logging options in Limagito File Mover

    Q: It looks like the logging options are per job. Would it be possible for there to be a global option for logging. This way someone cannot forget to set it up on a single job, and so we can be sure the logging is consistent across jobs. The individual job logging settings could always override the global settings.

    A: We are working on a global log setting at this moment (logging to a single log file). You’ll still need to enable a checkbox for each Rule you want to use this Global log setup in. The individual Rule Log file will stay (what we call history logging at the moment).

    New Logging Framework in Limagito File Mover starting from version v2023.2.26.0

    We replaced our previous logging framework because it was not ideal for the many requests we received regarding to logging. A long time request was a global file logging option which we added together with the new framework. The output result is not 100% identical as with the previous framework but this is something we cannot avoid, every advantage has its disadvantage.

    • The setup of the ‘Global File Logger’ is available under ‘Global’:

    Limagito File Mover Global Logging menu item

    Limagito File Mover Global Logging setup

    • If you want a Rule to write to this Global File Log then please enable this in the Rule Logging setup:

    Limagito File Mover Rule Logging menu item

    Important, the Log Level and Include&Exclude Filters in the Rule Logging setup below are individual for the selected Rule. The actual Global File Logger also has these Log Level and Include/Exclude Filters options. Both are used to determine if the entry is logged or not. The combination makes it possible to fine tune the entries being send to the Global File Log.

    Limagito File Mover Global File Log

    The individual Rule File Log (previously called History Log) is still available. Even both can be used at the same time, for example with different filters and levels.

    Limagito File Mover Rule File Log

    #FileTransfer #Logging

    If you need any info, please let us know.

    Best regards,

    Limagito Team

     

    By Limagito-Team Logging ,
  • 19 Mar

    Notificate the windows application log if a certain error occurs?

    Q: is it possible notificate in the windows application log if the following error occurs?

    17.03.2022 14:29:35 Connect IMAP4, OAuth2 Authorization Failed, Error:

      RefreshAccessToken:

       ..

        fullRequestGetResponse:

          Reading response header…

          responseStatusCode: 400

          Reading response body …

        –fullRequestGetResponse

        finalResponse: {“error”:”invalid_grant”,”error_description”:”AADSTS700082: The refresh token has expired due to inactivity. The token was issued on 2021-11-18T10:09:31.0508889Z and was inactive for 90.00:00:00.\..

      –RefreshAccessToken

    17.03.2022 14:29:35 Connect IMAP4, CK Login to outlook.office365.com Error:

      Connect_Imap:

    A: Yes this is possible using the following setup.

    1. Open ‘Logging’ setup and enable the ‘Clear Log at Rule Begin’ option in the ‘RunTime Log’ tab. Since we are going to use the RunTime log as content to check, we want to keep it unique for each time the Rule is started.

    Limagito File Mover Logging Setup

    Limagito File Mover RunTime Log Setup

    2. Open ‘Rule Events’

    Limagito File Mover Rule Events

    3. Enable the ‘On .. Error’ event and enable the ‘Enable Event Log’ option. Add %VSE ( Var String E ) to the ‘Event Log’ setup. Be sure the ‘On Error’ event stays selected during the setup of the other options.

    Limagito File Mover windows application log

    Important, in the ‘Options’ tab:

    • Enable ‘Include connect errors in on error event’
    • Enable ‘Use Pascal Script as Event Precondition’

    Limagito File Mover Rule Events Common Options

    4. Enable ‘Enable Pascal Script’ for the ‘On Error’ event. Add the following ‘Pascal Script’.

    Const
      ctErrorToFind = 'AADSTS700082';
    Begin
      // ... add your code here
      psExitCode := 0;
      If Pos(ctErrorToFind, psLRT) <> 0 Then
      Begin
        psLogWrite(1, '', 'Write Error To Event Log, ' + ctErrorToFind);
        psExitCode := 1;
      End  
      Else
        psExitCode := 0;
      // Put LogRunTime information in psVSE var 
      psVSE := psLRT;
    End.

    Limagito File Mover Rule Events Pascal Script option

    Summary:

    • The RunTime Log is cleared each time the Rule is triggered/started.
    • If an error (connect or others) occurs then we’ll use the Pascal Script option of the Rule Events to check if the content of the RunTime Log includes a certain text ( ‘AADSTS700082’ ).
    • If this text is available then we’ll put the RunTime Log content into the Windows Application Log.

    #Filetransfer

    If you need any info about this ‘windows application log’ request, please let us know.

    Best regards,

    Limagito Team

     

  • 06 Mar

    Log Report Summary parameter added in Limagito File Mover

    In version v2022.3.6. we added a Log Report Summary parameter: %LRS

    Some screenshots will help you to understand how you can use this parameter to send you a summary email after the Rule has finished.

    Please select ‘Rule Events’ menu item.

    Limagito File Mover Rule Events menu item

    We are going to use the ‘On Success’ Event to trigger an email so enable ‘On Success’ and ‘Enable Mail’.

    Limagito File Mover Rule Events Setup

    We added the new Summary parameter %LRS into the body of the email message.

    Limagito File Mover Rule Events setup

    Important, do not forget to enable ‘Trigger mail event after scan’ because the %LRS parameter is only available after scanning source files. You can find this option under the ‘Options’ tab of the ‘Rule Events’ setup.

    Limagito File Mover Rule Events Setup

    RunTime Log Result:

    Limagito File Mover RunTime Log

    Email we received:

    Limagito File Mover Report Summary email

    #Filetransfer

    If you need any info about this ‘Log Report Summary’ option, please let us know.

    Best regards,

    Limagito Team

    By Limagito-Team Logging , ,
1 2 3 4 5
SEARCH