Hi, I am developing a button but I don't know what logger mechanism should I use.
What is the recommender logger mechanism? Categoy class, log4j, commons-logging? what logger is using vignette out-of-the-box buttons?
Thanks!
I have found in the OTDN section a document "VCM Extension best practices" where it explains:
Custom log file or append to product log file? It is recommended that a separate custom log file to the products be produced for the following reasons: 1. Log files can roll quickly when debugging – adding custom logging to this will exacerbate this. 2. Customer Care use log file parsers that expect product logging only. By adding custom logs this may limit the effectiveness of these parsers
Location
It is best practice to store custom log files somewhere under the Vignette working directory as defined by the start-up argument–Dcom.vignette.workingDir.
Log files for code developed as part of an implementation should be stored under the Vignette working directory, alongside those for the Vignette component to which the developed component is most closely associated. For example a VCM extension log files should be stored along with the VCM server logs. This has the following advantages: 1. It should make tracing logged messages easier, as logs will be in a similar location. 2. Customer Care has utilities that poll the working directory and it’s subdirectories to extract all log files. 3. Ina clustered environment, only one are a will be needed for log files as this directory must be shared in a clustered configuration. The working directory is often a shared directory. Shared directories do not perform as fast as standard directories. During standard functioning of a site, log levels should be set to ERROR and the volume of messages written to the logs at that level kept to a minimum. If the volume of log messages required at this level is significant, then another non-shared folder should be considered.
So, the best option is tu use log4j for example and store the logs in a directory inside de vignette working dir.