You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to write a logger that outputs in different formats (JSON, XML, Text, etc). To do so, I need to initially write out a opening tag, then log the entries, then write a closing tag. I attempted to do this by setting the pattern on instantiation and then during destruction, but I seem to be running into issues, and the set_pattern seems to reset the file.
Can the pattern be changed dynamically?
Edit: It was an oops on my side...I accidentally did not initialize the SizeInMB variable and it ended up writing a new log entry for every record.
The text was updated successfully, but these errors were encountered:
I am trying to write a logger that outputs in different formats (JSON, XML, Text, etc). To do so, I need to initially write out a opening tag, then log the entries, then write a closing tag. I attempted to do this by setting the pattern on instantiation and then during destruction, but I seem to be running into issues, and the set_pattern seems to reset the file.
Can the pattern be changed dynamically?
Edit: It was an oops on my side...I accidentally did not initialize the SizeInMB variable and it ended up writing a new log entry for every record.
The text was updated successfully, but these errors were encountered: