-
1. Re: Creating logs from context items.
Aryan Anantwar Jan 16, 2017 2:01 AM (in response to Kushagra Jain)Hi Kushagra,
you doing it in right way, but yes it maybe failing because of special characters.
would be better if you share the adapter responses you are trying to write to file.
Regards,
Aryan Anantwar
-
2. Re: Creating logs from context items.
Volker ScheithauerJan 16, 2017 10:44 PM (in response to Aryan Anantwar)
Kushagara,
I write my adapter responses into a new file each time and use epoch_adapter-name.log as the file name. It's easier for me to consume later.
So far I had no issues.
Regards, V.
-
3. Re: Creating logs from context items.
Kushagra Jain Jan 17, 2017 1:38 AM (in response to Aryan Anantwar)Hi Aryan,
Will share the response shortly but is there any way to escape special characters from the text content that i extract from xml response.
-
4. Re: Creating logs from context items.
Carl WilsonJan 17, 2017 2:13 AM (in response to Kushagra Jain)
Hi,
the File Adapter if using the "line 1/2/3 .." Context Items as inputs does not like return characters i.e. each line should be a single line entry to the file.
I you want to append a large document, you can use the XML format.
Richards XML Utilities module contains workflow to encode/decode special characters.
Cheers
Carl