Skip to content

Allow logging arrays & objects #1208

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

Closed
wants to merge 1 commit into from
Closed

Conversation

Geczy
Copy link

@Geczy Geczy commented Sep 11, 2012

This will also output the array in the profiler logger.

Signed-off-by: Matt Gates info@mgates.me

Signed-off-by: Matt Gates <info@mgates.me>
@vfragosop
Copy link
Contributor

I actually have a suggestion.
You could check if it's not a string or int to use var_export, instead of checking for array and object.

That way it would allow to log NULL and FALSE either :)

I also don't know if var_export is the best function for this. There are so many equivalents generating so many different representations from an object, that it's really hard to choose one.

@Geczy
Copy link
Author

Geczy commented Jan 5, 2013

@taylorotwell Reason please ._.

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

Successfully merging this pull request may close these issues.

3 participants