Let me describe the use case. Details are in 
crbug.com/732339 (internal).
Authpolicyd periodically calls Samba net, smbclient and kinit. In case something goes wrong, we'd like to have a simple way to debug the problem. Samba's debug logs (we use -d 10) are very verbose and for several reasons we don't want to keep them always on. So how can a user enable them?
Authpolicyd reads a debug flag file at /etc/authpolicyd_flags, so going to dev mode would work, but it seems too complicated for an average user. Correct me if I'm wrong. Is this something we actually ask users to do?
Our current solution is to enable logs in dev/canary only. We simply ask users to go to the dev channel, repro the problem and send us the logs. Problem is, these logs are always on in those channels. It would be preferred if not.
I found ff_debug, chaps_debug etc. in crosh today, which seems to be exactly what we're looking for. Would that work?
Thanks,
- Lutz