start/stop logs by code... is it possible ?