add rotate type
add rotate type
parse from json config
now logger is configed from JSON file.