Make LogLocator class to provide flexibility