Question: I am learning Spring Boot and I have a strange problem.

```
import org.aspectj.lang.annotation.Aspect;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

import org.slf4j.Logger;

@Aspect
@Component
public class HttpAspect {

    private final static Logger logger = new LoggerFactory.getLogger(com.zhe.demo.aspect.HttpAspect.class);

}

```

When I run the program,I got this:

```
  Error:(13, 59) java: cannot find symbol
  symbol:   class getLogger
  location: class org.slf4j.LoggerFactory

```

It seems that the getLogger() method cannot be resolved.

But I had imported package org.slf4j.LoggerFactory.I found static method getLogger() in the package.

Answer: 
Remove "new":

```
private final static Logger logger = new LoggerFactory.getLogger(com.zhe.demo.aspect.HttpAspect.class);

```
I had such problem yesterday. And solve it by pointing on slj4j library in moment resolve "logging" by IDE (in moment of red "logging"). You need to choice the write string from "logger resolve" list.

There is popular name "logger", so many libraries use it.