I have this object which has some symbols properties on it:
{
foo: 'bar',
[Symbol(raw.json.bytes)]: 13,
[Symbol(raw.json.str)]: '{"foo":"bar"}'
}
now, I added those symbol properties myself, so maybe I can change how I add them using Object.defineProperty. Is there some way to prevent logging the symbols either:
- using an option to util.inspect(v, opts)
- Or by using Object.defineProperty?
Either way I am using util.inspect() to stringify the object, and my preference is to pass it an option to not log non-enumerable properties or what not.