API loggin

Discussion in 'A-Parser Support Forum' started by starHotel, Jan 5, 2016.

  1. starHotel

    starHotel A-Parser Enterprise License
    A-Parser Enterprise

    Joined:
    Jan 4, 2016
    Messages:
    14
    Likes Received:
    4
    Is there any functionality to log incoming API requests.

    Also are API requests multithreaded or does a-parser do each api request one at a time?
     
  2. Support

    Support Administrator
    Staff Member A-Parser Enterprise

    Joined:
    Mar 16, 2012
    Messages:
    4,547
    Likes Received:
    2,164
    There are two ways of logging task execution in A-Parser (including through API).
    1) Record to the file aparser.log log of work. Always works, it does not turn off.
    2) Log of execution of each task. Available for viewing in the Logs Viewer. Recorded only if the option doLog is enabled.
    All tasks, including through API, A-Parser execute multi-threaded.
     
  3. starHotel

    starHotel A-Parser Enterprise License
    A-Parser Enterprise

    Joined:
    Jan 4, 2016
    Messages:
    14
    Likes Received:
    4
    I'm only doing a API oneRequest and not actually a task.

    Adding 'doLog' doesn't do anything.
     
  4. Forbidden

    Forbidden Administrator
    Staff Member A-Parser Enterprise

    Joined:
    Mar 9, 2013
    Messages:
    3,337
    Likes Received:
    1,795
    You can watch execution in Tools -> Maintenance -> Debug Window -> Parser, then click 'Update'
     
    starHotel likes this.
  5. starHotel

    starHotel A-Parser Enterprise License
    A-Parser Enterprise

    Joined:
    Jan 4, 2016
    Messages:
    14
    Likes Received:
    4
    I assume that means even though you can see tasks popup, nothing in there is logged at the moment correct?
     
  6. Forbidden

    Forbidden Administrator
    Staff Member A-Parser Enterprise

    Joined:
    Mar 9, 2013
    Messages:
    3,337
    Likes Received:
    1,795
    API requests doesn't logged, but you can see currently executing queries both from Tasks and from API oneRequest/bulkRequest in this debug tool
     

Share This Page