1\add ConsoleTrapper to log message to Console;
2\judge if windows os when building path