I think the behaviour you described is correct. If you turn on switch2, the logging process will stop, even when switch1 is on. If you turn off switch2, the process will be running.
Here is an example of logger object.
you can change the "log break" button into a switch, which can better show you how it works.
Ryan Shi
National Instruments