> Cl?ment OUDOT wrote: >>>> - Statistics are displayed in CONSOLE and in LSC loggers >>>> - LDIF code is displayed in LSC logger, but other messages too, so I >>>> can >>>> not use the LDIF : maybe should we have a specific LDIF logger which >>>> logs >>>> all changes mande by the LSC under LDIF ? >>> Well, if what you want is an output that only contains LDIF, then >>> that's >>> not really a "log". Maybe we should think about a different output, >>> that >>> only writes LDIF, instead of writing to LDAP? Would that work for you? >> >> Yes, that is what I proposed : a specific log4j logger which logs evrery >> changes under LDIF form. If you just want LDIF, you run LSC in "dry" >> mode, >> and only get the LDIF, and if you don't want LDIF, just configure log4j. > > The class org.interldap.lsc.utils.LocalizedJndiModificationsLayout > outputs directory modifications as LDIF. Is this not what you want?
The pb is: it just not output only LDIF data ! So the logfile cannot be used with ldapadd/ldapmodify. And LDIF data don't need a "LocalizedJndiModificationsLayout", so that's why I proposed to code a new logger, dedicated to LDIF output, and to keep standard message in the first logger. >>>> Have some docs on level used and messages ? >>> There are no LSC-specific docs on logs. However, since we use log4j for >>> logging, there are some docs on the internet about configuring log4j... >>> probably not what you really need here though! >> >> No I want to give info for exploitation, so it concerns log contents. >> Waht >> do I see when i put warn level, debug level, ... ? > > I don't really know how to answer this question. > > Available levels are DEBUG, INFO, WARN, ERROR and FATAL. From right to > left, you get more and more information about what LSC is doing. > > Anything below WARN is just for information only, and can help analyze > problems. Details of modifications (such as LDIF output as discussed > above) are at the INFO level. Ok, I know how loglevels work, but the question was to obtain a list of error messages generated with LSC and their associated loglevel. It's a documentation we need for exmplotation. Dependinf on my time, I will have a look at this. > Does this help? Not really ;) Cl?ment.

