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

Better lua support #266

Open
Marak opened this issue Jan 8, 2017 · 2 comments
Open

Better lua support #266

Marak opened this issue Jan 8, 2017 · 2 comments
Assignees

Comments

@Marak
Copy link
Collaborator

Marak commented Jan 8, 2017

We've been getting a few requests for better lua support.

So far we have:

  • added socket, json, crypto and ssl packages.

We should:

@teamflower -

Do you have any additional suggestions for improving Lua support? This is a good place to bring them up.

@Marak Marak self-assigned this Jan 8, 2017
@teamflower
Copy link

Thanks, @Marak. Some guidance or improvements on using logging with Lua would be helpful: https://hook.io/logs

Just a couple example lines for Lua on the page would be 🎉 Not sure where to start.

@Marak
Copy link
Collaborator Author

Marak commented Jan 9, 2017

@teamflower -

So it's technically possible to do this right now using something like:

io.stderr:write('{ "type": "log", "payload": { "entry": "hello logs"}}')

That should send "hello logs" to the service logs. In addition to the above listed items, I'm going to write a convenience method for the lua services called log that will automatically wrap the above statement into a single function.

Thanks for the suggestion!

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

No branches or pull requests

2 participants