Skip to content

Added feature to print the content of the objetcs#1

Open
ericzon wants to merge 2 commits intonaorye:masterfrom
ericzon:feature_print_objects
Open

Added feature to print the content of the objetcs#1
ericzon wants to merge 2 commits intonaorye:masterfrom
ericzon:feature_print_objects

Conversation

@ericzon
Copy link
Copy Markdown

@ericzon ericzon commented Sep 5, 2014

Nice feature added to this useful lib.

Example:

var myObj = {
'key1' : 'value1',
'key2' : 'value2',
'key3' : {
'key3_1' : 'value3_1',
'key3_2' : 'value3_2'
},
'key4' : 'value4',
'key5' : 'value5',
'key6' : 'value6',
'key7' : 'value7'
};
logger.debug('myObj: ',myObj);

Example:

var myObj = {
                'key1' : 'value1',
                'key2' : 'value2',
                'key3' : {
                    'key3_1' : 'value3_1',
                    'key3_2' : 'value3_2'
                },
                'key4' : 'value4',
                'key5' : 'value5',
                'key6' : 'value6',
                'key7' : 'value7'
            };
logger.debug('myObj: ',myObj);
Comment thread angular-ny-logger.js
@@ -77,6 +77,7 @@ angular.module('ny.logger', []).provider('Logger', [function () {
}];

function isObject(element){
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can use _.isObject() it will return the correct result

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.

2 participants