added omitold and omitempty to the logs command