License slogger under the Apache License v2 and add copyright notices.