Linux temps réel embarqué et outils de développements Technique


liblog-loglite-perl Perl module that facilitates lightweight logging
Installed size 88
Maintainer Bart Martens <bartm@knars.be>
Architecture all
Version 0.82-4
Depends perl (>= 5.6.0-16), libio-lockedfile-perl
Suggests libdbd-csv-perl, libxml-dom-perl
File name pool/main/libl/liblog-loglite-perl/liblog-loglite-perl_0.82-4_all.deb
Description In order to have a log we have first to create a Log::LogLite object. The Log::LogLite object is created with a logging level. The default logging level is 5. After the Log::LogLite object is created, each call to the write method may write a new line in the log file. If the level of the message is lower or equal to the logging level, the message will be written to the log file. The format of the logging messages can be controled by changing the template, and by defining a default message. The class uses the IO::LockedFile class. . The Log::NullLogLite class is derived from the Log::LogLite class and implement the Null Object Pattern to let us to use the Log::LogLite class with null Log::LogLite objects. We might want to do that if we use a Log::LogLite object in our code, and we do not want always to actually define a Log::LogLite object (i.e. not always we want to write to a log file). In such a case we will create a Log::NullLogLite object instead of the Log::LogLite object, and will use that object instead. The object has all the methods that the Log::LogLite object has, but those methods do nothing. Thus our code will continue to run without any change, yet we will not have to define a log file path for the Log::LogLite object, and no log will be created. . Homepage: http://search.cpan.org/~rani/Log-LogLite/

©M.N.I.S Société | Produits | Services | Formations | Support | Partenariat | Presse | Téléchargements ©M.N.I.S