Skip to content
New issue

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

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

Already on GitHub? # to your account

Targets to generate warning/error/info messages from userland #26

Open
raphaelvigee opened this issue Apr 24, 2024 · 0 comments
Open

Targets to generate warning/error/info messages from userland #26

raphaelvigee opened this issue Apr 24, 2024 · 0 comments
Milestone

Comments

@raphaelvigee
Copy link
Member

raphaelvigee commented Apr 24, 2024

Before execution, heph would create a file, pass its absolute path in the target as an env var HEPH_ERROR

Userland targets could be writing into that file which would be watched by heph during execution, any line written to it would be converted to a log.Warn/Error/Info

echo "Something is failing" >> $HEPH_ERROR
echo "Watch out for crocodiles!" >> $HEPH_WARN

See https://gist.github.com/matishsiao/fc1601a3a3f37c70d91ab3b1ed8485c4

@raphaelvigee raphaelvigee added this to the v1 milestone Apr 24, 2024
@raphaelvigee raphaelvigee changed the title Have a way for targets to generate warning/error/info messages Targets to generate warning/error/info messages from userland Apr 24, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant