I use the Parallec library, which in turn logs to slf4j. Tell me whether it is possible to redirect messages of a given level (WARN and worse) to a file?

Found a description of the configuration file, but it does not respond to it. log4j is not connected.

1 answer 1

EMNIP, slf4j is a universal logging facade, i.e. for its correct operation, a specific logging library is needed, for example, log4j. To make it work you need a specific binding to a specific logging library. More details can be found in the official slf4j user manual .

  • Added, also picked up the config for log4j. Well, yes, Hibernate responded, but parallec did not. - Riĥard Brugekĥaim
  • @ RiĥardBrugekĥaim and the library does not keep its logs? In a separate file, I mean. Judging by the source, there is a setting for logback. - zolt
  • But I did not notice its presence. Thanks, set up. - Riĥard Brugekĥaim