Copyright © 1999-2023. Cloud Software Group, Inc. All Rights Reserved.
Copyright © 1999-2023. Cloud Software Group, Inc. All Rights Reserved.

Chapter 3 Adapter Resources Palette : Custom Log Sink Reference

Custom Log Sink Reference
The Log Sinks folder allows you to configure advanced logging behavior.
This discusses the following log sink topics:
Log Sinks Overview
The TIBCO Adapter SDK allows programmers to define traces with different roles and sends them to sinks with the corresponding role.
You can fine-tune where and when different types of information are sent. First you use TIBCO Designer to define sinks and map each sink to one or more roles.
Each time the program calls a tracing method, it has to explicitly or implicitly specify one or more roles. Each sink that has been mapped to that role receives that message if the role has been turned on. This way, the output information level can be tuned via modifications to the adapter configuration. To reduce the amount of information, roles can be turned off for the adapter configuration using TIBCO Designer.
Four types of sinks are predefined and configurable from the Log Sinks folder. They are discussed in this chapter:
You can also define a sink that uses a custom role. This is discussed in Adding Roles to Sinks.
File Sink
For a file sink, you specify the following information:
Table 60 File Sink
The default file sink that is part of each adapter has those roles predefined that were selected when you turned on Advanced Logging. If you create additional file sinks, you can add roles. See Adding Roles to Sinks
Understanding File Count and File Limit
If you have specified a file sink in your configuration, your SDK-based adapter will go through these steps:
1.
2.
3.
When File Limit has been reached (that is, as soon as the file is as big as or bigger than the limit) the adapter renames the current file to file.1 and creates a new file with no extension.
4.
5.
The adapter overwrites the file with the highest number, that is, the oldest file, when the number of files reaches File Count and that last file reaches File Limit. To avoid that, set either File Count or File Limit to a sufficiently large value.
stdio Sink
For a stdio Sink, you specify the following information.
Table 61 stdio Sink
Select stdio or stderr. If you select stderr, it remains selected even when you turn off Advanced Logging.
Network Sink
To add a network sink:
1.
Select the Log Sinks panel.
2.
Drag a Generic Log Sink into the design panel.
3.
In the configuration panel, choose Network from the pop-up menu.
4.
Click the Browse icon and select one of the sessions you defined.
5.
Hawk Sink
A Hawk sink sends messages to TIBCO Hawk. To add a Hawk sink:
1.
Select the Log Sinks panel.
2.
Drag a Generic Log Sink into the design panel.
3.
In the configuration panel, choose Hawk from the pop-up menu.
4.
Table 62 Hawk Sink
5.
Adding Roles to Sinks
For sinks that were defined for the adapter before Advanced Logging was turned on, one Role resource is included for each role that was turned on.
If you wish to add additional roles, or if you wish to add roles to newly created sinks, you have the following options:
To use an existing role, control-drag it into the sink.
To create a new role, follow these steps:
1.
2.
3.

Copyright © 1999-2023. Cloud Software Group, Inc. All Rights Reserved.
Copyright © 1999-2023. Cloud Software Group, Inc. All Rights Reserved.