added docstrings & change condition in BaseLog