将自定义日志位置添加到OS X控制台应用程序 [英] Adding custom log locations to the OS X console application

查看:119
本文介绍了将自定义日志位置添加到OS X控制台应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在线搜索后,我发现到目前为止的最佳解决方案是在/ Library / logs /或〜/ Library / logs /中创建一个符号链接,使其显示在控制台应用程序。

After searching online, the best solution I've found so far is to just make a symbolic link in either "/Library/logs/" or "~/Library/logs/" to get it to show up in the Console application.

我想知道是否可以直接在日志文件部分的root级别添加一个新目录或日志文件

I'm wondering if it would be possible to add a new directory or log file to the "root" level directly under the "LOG FILES" section in the console.

以下是快速截图:

推荐答案

我不相信。

如果您要生成日志文件,那么您应该将它们生成到其中一个标准位置,因此这不会有问题。

If you're generating log files, you should generate them into one of the standard locations anyway, so this won't be an issue.

这篇关于将自定义日志位置添加到OS X控制台应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆