Skip to content
This repository was archived by the owner on Aug 1, 2021. It is now read-only.

RollingFileAppender issue #9

Open
Rayne1 opened this issue Jul 6, 2021 · 0 comments
Open

RollingFileAppender issue #9

Rayne1 opened this issue Jul 6, 2021 · 0 comments

Comments

@Rayne1
Copy link

Rayne1 commented Jul 6, 2021

I'm reading the content of the log file line by line and generate web page like that:
if (SPIFFS.exists(FILENAME)) { File file = SPIFFS.open(FILENAME, "r"); String line; while (file.available()) { line = file.readStringUntil('\n'); website = website + " <div class=\"row\" style=\"padding-bottom:1em\">\n"; website = website + line; website = website + " </div>\n"; } file.close(); }

but finally for some rows I get three question marks in the end, the row also misses CR.
probably something is wrong with offset calculation or RollingFileAppender::end method.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant