In most cases, custom adapters specify a file sink in the adapter instance description object. In that case, the SDK goes through these steps:
- Creates a file.
- Writes to that file until it reaches the sizes specified in fileLimit.
- When fileLimit has been reached (that is, as soon as the file is as big as or bigger than the limit) the SDK renames the current file to file.1 and creates a new file with no extension. Note that the log file can be slightly larger than the limit because the new file is only created after the limit has been reached.
- The SDK repeats this process until it reaches the number of files specified in fileCount.
Note
The adapter overwrites the file with the lowest number, that is, the oldest file, when the number of files reaches fileCount and that last file reaches fileLimit. To avoid that, set either fileCount or fileLimit to a sufficiently large value.
Inherited Method
MSink::getSinkName() Gets the sink name for this sink.