copied flags definition from std log package