https://www.boundaryml.com logo
🟡 Questions About BAML Logging Formats and User D...
# questions
h
Hello! As much as love BAML for the DX, my experience with BAML terminals logs is not great. https://docs.boundaryml.com/guide/development/terminal-logs - The default logging format in Python is not structured, making it difficult to parse log entries programmatically. Cloud providers would then have to process each individual line, which makes searching and aggregating logs inefficient. Is there any way to change the structure of the logging? - Best practices recommend avoiding logging user data altogether. However, even WARNING-level logs may include user input, and to my knowledge, there is no straightforward way to automatically exclude user data from logs. - Is it possible to log intermediate errors when switching between LLMs? https://cdn.discordapp.com/attachments/1253172394345107466/1429911461613801502/image.png?ex=696d31d2&is=696be052&hm=35bce42f8f779186316065bf074ceba185b62b4172d500b522507470e232e8f8&
a
You can use BAML_LOG_JSON=1 to get json structured logs
Which user data do you see in warning logs?
Or which warning logs?
h
Awesome thank you for BAML_LOG_JSON. In warning logs, I can see user's prompt
cf the picture above
a
Ah sorry, yes we can likely tweak better what is shown
Thanks for the callout, this should be fixed
Is your team using baml currently?
h
Yes we do use baml, almost power user
a
How big is your team? Just curious
h
we are less than 10 people