Create a log metadata object
the metadata for specified log or null if error occurs
filepath of the log.