Every time we call any of the updating functions and the update succeeds, we write a logging message.
每一次当我们调用任何更新函数,或是更新成功完成后,我们写入一个日志消息。
In this case the returned function object is a closure which encapsulates some logging code and the data needed to call the original function.
这种情况下返回的函数对象就是一个闭包,其中封装了一些日志代码和最初的函数调用所需要的数据。
If an event or service call needs to be logged, create a logging task at the beginning and end of each service where logging is required.
如果某个事件或服务需要被记录,可以在每个服务需要记录的起始和结束处创建一个日志任务。
For each logging call, we need to determine whether or not the message is to be sent to the log file.
对于每个日志调用,都需要确定这条消息是否将发送到日志文件中。
Logging can be performed in a collaboration using either a probe or a service call (to a database, for example).
日志可以通过使用探测或者服务调用来在协作中执行(比如对数据库)。
This leads us back to the point of making your logging concise and logging enough information to trace the call through the system.
这又将我们带回这个点:保持日志简洁,记录足够信息以跟踪调用通过系统。
The first DB2.OPEN_LOG call builds a linked list hash table as shown in Figure 1 from the logging tokens kept in the Shared memory.
第一个DB 2 . OPEN_LOG调用的功能是从共享内存中保存的日志标记来构建一个如图1所示的链表散列表。
Call the generic logging service.
调用常规日志服务。
To initiate logging from a DB2 stored procedure, first call DB2.OPEN_LOG with two parameters.
要在DB2 的存储过程中启用日志功能,首先要使用两个参数调用 DB2.OPEN_LOG。
Note the client doesn't call the logging methods.
注意,客户机没有调用日志方法。
Call the customized logging service: This information is passed along with the log message to the WebSphere Lombardi generic logger service, which needs to be mapped.
调用定制日志服务:此信息与日志消息一起传递到WebSpherelombardi常规记录器服务,该服务需要被映射。
After logging into the Web service, you make a second Web services call, this time to the set_entry Web service method.
登录到Web服务后,进行第二个Web服务调用,这次是调用set_entry Web服务方法。
Trusted applications are given the appropriate LoggingPermission so they can call any of the logging configuration APIs.
只有受信的应用程序才能被赋予恰当的LoggingPermission权限,因此可以调用任何修改配置的API。
You can call methods on the log object that correspond to the desired log level: debug, info, error, and so on. (See Resources for more information on logging.)
可以调用log对象上与想要的日志级别相对应的方法,这些日志级别包括:debug、info和error等(参见参考资料了解关于日志记录的更多信息)。
Answer: you can always turn off global logging by setting global_logging to N. However, if you want to shave every millisecond from your stored procedure's execution time, comment out all CALL DB2.
解答:可以通过将global_logging设置成n来全局地关闭日志功能。然而,如果希望节省存储过程执行时的每一毫秒的时间,那么在确信SQL - PL和外部存储过程都已经准备好之后,就可以注释掉所有的CALL DB2。
Answer: you can always turn off global logging by setting global_logging to N. However, if you want to shave every millisecond from your stored procedure's execution time, comment out all CALL DB2.
解答:可以通过将global_logging设置成n来全局地关闭日志功能。然而,如果希望节省存储过程执行时的每一毫秒的时间,那么在确信SQL - PL和外部存储过程都已经准备好之后,就可以注释掉所有的CALL DB2。
应用推荐