解决方案 »

  1.   

    那个我都查过了,也做了,还是不行的。好像写的不对了啥的。。看了这段,我也不晓得咋处理
    public class Categoryextends Objectimplements AppenderAttachableThis class has been deprecated and replaced by the Logger subclass. It will be kept around to preserve backward compatibility until mid 2003. Logger is a subclass of Category, i.e. it extends Category. In other words, a logger is a category. Thus, all operations that can be performed on a category can be performed on a logger. Internally, whenever log4j is asked to produce a Category object, it will instead produce a Logger object. Log4j 1.2 will never produce Category objects but only Logger instances. In order to preserve backward compatibility, methods that previously accepted category objects still continue to accept category objects. For example, the following are all legal and will work as expected.        // Deprecated form:
           Category cat = Category.getInstance("foo.bar")       // Preferred form for retrieving loggers:
           Logger logger = Logger.getLogger("foo.bar")