Add some log for Network.
Shortened switch case statement with Java 8 syntax.