Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我是 Perl 的新手,在使用新的 CR 时,我停留在使用Log4perl包的 Perl 代码上。
已经开发的代码正在使用这个包,并且在这个包的配置文件中有这样的配置:
log4perl.appender.Logfile.max = 2 log4perl.appender.Logfile.size = 10_000 log4perl.appender.Logfile = Log::Dispatch::FileRotate
我可以在配置文件中获取有关这些参数的信息,并可能更改它们吗?
Log4perl是log4j的 Perl 版本。两者的文档通常对另一个有用,因为它们非常接近。如果您对文档有疑问,请针对您不理解的部分提出更具体的问题。:)
您可能还想查看我的“掌握 Perl中的日志”一章,其中讨论了配置文件的结构。
当然,您可以获得有关这些参数的信息。log4perl的文档应该解释其中的每一个。