Este conteúdo não está disponível no idioma selecionado.

3.9. Software Collection Log File Support


By default, programs packaged in a Software Collection create log files in the /opt/provider/%{scl}/root/var/log/ directory.
To make log files more accessible and easier to manage, you are advised to use the nfsmountable macro that redefines the _localstatedir macro. This results in log files being created underneath the /var/opt/provider/%{scl}/log/ directory, outside of the /opt/provider/%{scl} file system hierarchy.
For example, a service mydaemon normally stores its log file in /var/log/mydaemon/mydaemond.log in the base system installation. When mydaemon is packaged as a software_collection Software Collection and the nfsmountable macro is defined, the path to the log file in software_collection is as follows:
/var/opt/provider/software_collection/log/mydaemon/mydaemond.log/var/opt/provider/software_collection/log/mydaemon/mydaemond.log/var/opt/provider/software_collection/log/mydaemon/mydaemond.log/var/opt/provider/software_collection/log/mydaemon/mydaemond.log/var/opt/provider/software_collection/log/mydaemon/mydaemond.log/var/opt/provider/software_collection/log/mydaemon/mydaemond.log/var/opt/provider/software_collection/log/mydaemon/mydaemond.log/var/opt/provider/software_collection/log/mydaemon/mydaemond.log
Copy to Clipboard Toggle word wrap
For more information on using the nfsmountable macro, see Section 3.1, “Using Software Collections over NFS”.
Voltar ao topo
Red Hat logoGithubredditYoutubeTwitter

Aprender

Experimente, compre e venda

Comunidades

Sobre a documentação da Red Hat

Ajudamos os usuários da Red Hat a inovar e atingir seus objetivos com nossos produtos e serviços com conteúdo em que podem confiar. Explore nossas atualizações recentes.

Tornando o open source mais inclusivo

A Red Hat está comprometida em substituir a linguagem problemática em nosso código, documentação e propriedades da web. Para mais detalhes veja o Blog da Red Hat.

Sobre a Red Hat

Fornecemos soluções robustas que facilitam o trabalho das empresas em plataformas e ambientes, desde o data center principal até a borda da rede.

Theme

© 2025 Red Hat