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

No logs. #2

Closed
alvarlagerlof opened this issue Jun 17, 2018 · 4 comments
Closed

No logs. #2

alvarlagerlof opened this issue Jun 17, 2018 · 4 comments

Comments

@alvarlagerlof
Copy link

I can't manage to get any logs from your lib. I've included it and fetched libraries, but it's nor printing anything.

This is my code.
log = require("log.log")
log.set_appname("Platformer")
log.d("foobar")

Other things in the block run just fine. And i also get no error from from the lib?

What have I done wrong?

@alvarlagerlof
Copy link
Author

alvarlagerlof commented Jun 17, 2018

Had to do log.toggle_print(). Shouldn't that be on as default.

But this is not changing the colors?
image

@subsoap
Copy link
Owner

subsoap commented Jun 17, 2018

Printing to console isn't enabled by default at the moment, but saving the log to files is. I'll maybe set it to enabled by default.

I tested trying to use color codes for the printed output but didn't get it to work yet. I'll ask Defold team if it's possible.

@alvarlagerlof
Copy link
Author

Or atleast make it more clear that you have to turn it on to see in the console.

Yeah please talk to them. Colors would be a killer feature. And if you could replace it saying debug in the begining then it's really something else would also be really nice.

@subsoap
Copy link
Owner

subsoap commented Jun 18, 2018

I've updated readme, and made requests to Defold team for features so I can change colors. Until they add these features, there's nothing I can do to add colors so I'll close this for now.

@subsoap subsoap closed this as completed Jun 18, 2018
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