change structure;added log util class Logg