在UNIX和与UNIX相似的系统上,日志文件仅仅是文本文件,相关联的服务器进程或系统日志记录守护进程在其中写入消息。
On UNIX and UNIX-like systems, log files are simply text files that are continually appended, either by the server processes that they are associated with or by system-logging daemons.
这又将我们带回这个点:保持日志简洁,记录足够信息以跟踪调用通过系统。
This leads us back to the point of making your logging concise and logging enough information to trace the call through the system.
您可能会想考虑使用一个非阻塞的日志系统,以防止您的终端用户等待您记录数据。
You may want to consider using a logging system that is non-blocking, so that your end user never waits for you to log data.
必须在两个系统之间发送的数据量只受到日志记录的操作的限制。
The amount of data that must be sent between the systems is limited to only logged operations.
审计信息可以存储在每个系统上系统管理员指定的本地文件中,也可以发送到远程系统以便进行集中的日志记录。
The audit information can be stored locally on each system in a file designated by the system administrator, or can be sent to a remote system for centralized logging.
持续的日志记录可能会填满系统中的空间,从而导致其他程序也耗尽空间并且执行失败。
Continuous logging can fill up space on the systems, causing other programs to also run out of space and fail.
无论队列管理器运行于哪个操作系统上,您都应该确保日志记录的性能是高效的。
Regardless of the operating system your queue manager runs on, you should ensure that the performance of logging is efficient.
可以在进程最后附加一个简单的日志记录系统,以跟踪所涉及的项目的每次下载操作。
You can attach a simple logging system at the end of the process that keeps track of each download of the item in question.
MQ社区中的一个常见误解是以为线性日志记录更适合于生产级别的系统。
A common misconception in the MQ community is that linear logging is more appropriate for production-level systems.
系统修改的日志记录,包括在集群上执行管理操作的时间。
A log of changes to system including when administrative action was performed on the cluster.
但是正如您从中可以看出的,输出的布局在默认情况下不是很理想,它丢失了时间戳,而我认为时间戳正是任何日志记录系统的至关重要的元素。
But as you can see, layout isn't that nice by default; in addition, it's missing a timestamp, which I believe to be a vital element of any logging system.
您不需要所有那些线程,不过这样您会看到自己创建的日志记录系统的强大能力。
You don't need all those threads, but this way you'll see the power of the logging system you've created.
就XFS而言,逻辑日志记录是很适合的;在高端硬件上,日志经常是整个文件系统中争用最多的资源。
In the case of XFS, logical journaling is a good fit; on high-end hardware, the journal is often the most contentious resource of the entire filesystem.
在把各个功能分散对应到各系统模块时,记录日志可以保证设计的完整性。
The logs help preserve design integrity in allocating functionality to system components.
关于系统上典型的审计日志文件,参见清单1;它还显示了记录的追踪部分。
A typical audit log file on my system is shown in Listing 1; it shows the trail record, as well.
pam_warn在系统日志中记录信息。
SparcSolaris7的第一个 64位版本增加了文件系统元数据日志记录支持。
The first 64-bit version of Sparc Solaris 7 would add support for file system metadata logging.
RRDtool是一个开放源码的高性能数据日志记录和绘图系统,用于处理时间系列数据。
RRDtool is an open source, high performance data logging and graphing system for time series data.
要做的第一件事情是在一个系统属性中设置日志记录器。
The first thing to do is to set up the logger from a system property.
部署管理器服务器已启动,且系统输出和错误日志中未记录任何异常或错误消息。
The deployment manager server starts, without any unexpected exceptions or error messages in the system output and error logs.
如果您知道日志记录活动如何影响数据库和操作系统,就能够成功且有效地排除由于日志记录错误而产生的问题。
If you know how logging activities affect your database and operating system, you will be able to successfully and efficiently troubleshoot the problems that can arise from logging errors.
在一个繁忙的系统中,您每天都可能很容易地将25MB或更多信息记录到系统日志中,日志量太大经常是导致磁盘空间不足错误的原因。
On a busy system you can easily record 25MB or more information each day to the system logs, and logs are frequently the cause of insufficient disk space errors.
具有最新配置副本的节点代理服务器成功启动,且系统输出和错误日志中未记录任何明显异常或错误消息。
The nodeagent server with the most current copy of the configuration starts successfully with no obvious exceptions or error messages in the system output and error logs.
编写审核日志事件可比作在数据库系统中编写数据库日志记录。
Writing audit log events is comparable to writing database log records in a database system.
目标服务接收每次调用,并将业务对象的内容记录到系统日志中,如清单5 中所示。
The target service received each invocation and logged the contents of the business object to the system log as shown in Listing 5.
它可以对一些数据库事件,例如授权检查、数据库对象维护、安全性维护、系统管理和用户验证等做日志记录。
It is capable of logging database events such as authorization checking, database object maintenance, security maintenance, system administration, and user validation.
当系统中不再存在属于旧模式的日志记录时,影子复制将被自动删除,系统中就只有新的主复制。
After the log records pertaining to older schema no longer exist in the system, the shadow replicate is automatically deleted and system only has new master replicates.
而现在,我们有许多日志记录文件系统,并且发现自己的处境很妙—可以按自己的需求选择最好的文件系统。
Now, we have plenty of them and find ourselves in the luxurious position of being able to choose the best filesystem for our needs.
这是很好的安排,因为JBD是作为一个单独的、一般实体而开发的,将来它可以用于向其它文件系统添加日志记录能力。
It's quite a nice arrangement, and because the JBD is being developed as a separate, generic entity, it could be used to add journaling capabilities to other filesystems in the future.
总之,日志文件系统就是一种具有故障恢复能力的文件系统,它利用日志来记录尚未提交到文件系统的修改,以防止元数据破坏(请参见图1)。
To sum up, journaling file systems are fault-resilient file systems that use a journal to log changes before they're committed to the file system to avoid metadata corruption (see Figure 1).
应用推荐