Skip to content

Conversation

@RobbieLePommie
Copy link
Contributor

Example usage:

Example usage: <settings file="Logs/{0:yyyy-MM-dd}/{0:HH-mm-ss tt}.txt" maxsize="10" maxtime="86400" />
@4real
Copy link
Contributor

4real commented Oct 12, 2022

Going to close and reopen to trigger tests to run (I had to change an organization setting).

@4real 4real closed this Oct 12, 2022
@4real 4real reopened this Oct 12, 2022
// Get the maximum size (in MB, convert to bytes)
try
{
int logMaxSizeMB = int.Parse(logWriterLoadData.Settings["maxSize"] ?? "100");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be good to have the property named 'maxSizeMb' so it's absolutely clear what units it uses

// Get the maximum time before rotation (in seconds)
try
{
LogMaxTimeSeconds = int.Parse(logWriterLoadData.Settings["maxTime"] ?? "86400");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be good to have the property named 'maxTimeSeconds' so it's absolutely clear what units it uses

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants