Update: The same error occurs when calling logt in a non-static context. The problem may be related to the fact that the project is a multi module maven project and "Parent" is located in another module.