{"id":15672094,"url":"https://github.com/0x5e/nsobject-nslog","last_synced_at":"2025-06-24T22:36:03.430Z","repository":{"id":56921055,"uuid":"78905145","full_name":"0x5e/NSObject-NSLog","owner":"0x5e","description":null,"archived":false,"fork":false,"pushed_at":"2017-01-14T13:45:45.000Z","size":42,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-12T00:09:16.739Z","etag":null,"topics":["nslog","objective-c","unicode"],"latest_commit_sha":null,"homepage":null,"language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/0x5e.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-01-14T02:30:04.000Z","updated_at":"2020-10-27T09:35:04.000Z","dependencies_parsed_at":"2022-08-21T04:50:39.716Z","dependency_job_id":null,"html_url":"https://github.com/0x5e/NSObject-NSLog","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/0x5e/NSObject-NSLog","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0x5e%2FNSObject-NSLog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0x5e%2FNSObject-NSLog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0x5e%2FNSObject-NSLog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0x5e%2FNSObject-NSLog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0x5e","download_url":"https://codeload.github.com/0x5e/NSObject-NSLog/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0x5e%2FNSObject-NSLog/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261768389,"owners_count":23206998,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["nslog","objective-c","unicode"],"created_at":"2024-10-03T15:21:48.759Z","updated_at":"2025-06-24T22:36:03.406Z","avatar_url":"https://github.com/0x5e.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NSObject+NSLog\n\n[![CI Status](http://img.shields.io/travis/0x5e/NSObject-NSLog.svg?style=flat)](https://travis-ci.org/0x5e/NSObject-NSLog)\n[![Version](https://img.shields.io/cocoapods/v/NSObject+NSLog.svg?style=flat)](http://cocoapods.org/pods/NSObject+NSLog)\n[![License](https://img.shields.io/cocoapods/l/NSObject+NSLog.svg?style=flat)](http://cocoapods.org/pods/NSObject+NSLog)\n[![Platform](https://img.shields.io/cocoapods/p/NSObject+NSLog.svg?style=flat)](http://cocoapods.org/pods/NSObject+NSLog)\n\nA simple drop-in library to support `NSDictionary/NSArray/NSSet` unicode encoding output when using NSLog(@\"%@\", dict);\n\n## Features\n\n- Support unicode character\n- Nested indent\n- `DEBUG` macro\n- Unit test\n- Travis-ci\n- Boundary treatment\n- Eliminate ambiguity\n\n## Reference\n\n[swift-corelibs-foundation](https://github.com/apple/swift-corelibs-foundation/)\n\n## Requirements\n\nNSObject+NSLog require iOS 7.0+ or macOS 10.9+.\n\n## Installation\n\nNSObject+NSLog is available through [CocoaPods](http://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod \"NSObject+NSLog\"\n```\n\n## Example\n\nEmpty directory:\n\n```\nNSDictionary *dict = @{};\nNSLog(@\"%@\", dict);\n\n// output\n2017-01-14 21:16:32.573974 xctest[53279:9350242] {\n    \"dict\" = {};\n}\n\n```\n\nNested indent directory:\n\n```\nNSDictionary *dict = @{@\"dict\": @{@\"dict2\": @{@\"key\": @\"value\"}}};\nNSLog(@\"%@\", dict);\n\n// output\n2017-01-14 21:16:32.574952 xctest[53279:9350242] {\n    \"dict\" = {\n        \"dict2\" = {\n            \"key\" = \"value\";\n        };\n    };\n}\n\n```\n\nNumbers:\n\n```\nNSDictionary *dict = @{@\"number\": @(0)};\nNSLog(@\"%@\", dict);\n    \nNSDictionary *dict2 = @{@\"number\": @(0.1)};\nNSLog(@\"%@\", dict2);\n    \nNSDictionary *dict3 = @{@\"number\": @(-2.2)};\nNSLog(@\"%@\", dict3);\n\n// output\n2017-01-14 21:16:32.572450 xctest[53279:9350242] {\n    \"number\" = 0;\n}\n2017-01-14 21:16:32.572555 xctest[53279:9350242] {\n    \"number\" = 0.1;\n}\n2017-01-14 21:16:32.572618 xctest[53279:9350242] {\n    \"number\" = -2.2;\n}\n```\n\nUnicode:\n\n```\nNSDictionary *dict = @{@\"emoji\": @\"🐒🐔🐶🐷\"};\nNSLog(@\"%@\", dict);\n\nNSDictionary *dict2 = @{@\"chinese\": @\"中文\"};\nNSLog(@\"%@\", dict2);\n\n// output\n2017-01-14 21:16:32.577841 xctest[53279:9350242] {\n    \"emoji\" = \"🐒🐔🐶🐷\";\n}\n2017-01-14 21:16:32.577890 xctest[53279:9350242] {\n    \"chinese\" = \"中文\";\n}\n```\n\n## Author\n\ngaosen, 0x5e@sina.cn\n\n## License\n\nNSObject+NSLog is available under the MIT license. See the LICENSE file for more info.\n\n## TODO\n\n- NSString escape（[CFString​Transform](http://nshipster.cn/cfstringtransform/)）\n- NSDictionary、NSSet print before sort\n- More unit test case\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0x5e%2Fnsobject-nslog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F0x5e%2Fnsobject-nslog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0x5e%2Fnsobject-nslog/lists"}