Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Log.printf("Some Text: %s \n", mystring); cant print mystring when length of string >15 chars #6

Open
AlanTwigg opened this issue Mar 11, 2023 · 5 comments

Comments

@AlanTwigg
Copy link

Describe the bug, issue or concern

// Logging
#include <SyslogStream.h>
#include <TLog.h>
#define SYSLOGHOST "192.XXX.1.245"
SyslogStream syslogStream = SyslogStream();
String esp = "ESP32 Security Lamp";

void logSetup() {

syslogStream.setDestination(SYSLOGHOST);
syslogStream.setRaw(true); // wether or not the syslog server is a modern(ish) unix.
syslogStream.setPort(514);
const std::shared_ptr syslogStreamPtr = std::make_shared(syslogStream);
Log.addPrintStream(syslogStreamPtr);
Log.begin();
Log.printf("Logging enabled for: %s ip: %s firmware: %s \n", esp,ip,firmware);

}

To Reproduce

esp is a literal string , when the string exceeds 15 chars a '?' is printed in the log

@dirkx
Copy link
Owner

dirkx commented Mar 11, 2023 via email

@AlanTwigg
Copy link
Author

AlanTwigg commented Mar 12, 2023 via email

@dirkx
Copy link
Owner

dirkx commented Mar 12, 2023 via email

@AlanTwigg
Copy link
Author

AlanTwigg commented Mar 12, 2023 via email

@dirkx
Copy link
Owner

dirkx commented Mar 12, 2023 via email

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

No branches or pull requests

2 participants