Organize logs into separate directories and files with proper names.