You can always write custom code that formats messages any way you want for your logs. The TextFormat class is based purely on public interfaces, so you can copy it and modify it. You can define a custom option for flagging fields that you want removed from the logs and use that custom option in your modified TextFormat.
I don't think we want to implement this feature directly in the base implementation. There are too many little feature requests like this, and if we implemented them all the library would get quite bloated. On Thu, Feb 17, 2011 at 4:10 PM, Robert H <robert.huff...@gmail.com> wrote: > If you use protobuf for confidential data, enabling debugt logging > exposes the data. It would be nice to have a field option that directs > the TextFormat class to not log a field. > > -- > You received this message because you are subscribed to the Google Groups > "Protocol Buffers" group. > To post to this group, send email to protobuf@googlegroups.com. > To unsubscribe from this group, send email to > protobuf+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/protobuf?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To post to this group, send email to protobuf@googlegroups.com. To unsubscribe from this group, send email to protobuf+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/protobuf?hl=en.