Bedrock.Server.LogFile.Delete

This Bedrock TM1 TI will delete TM1 log files according to the parameters.

Parameters

Parameter

Data Type

Default

Explanation

pLogDir

String


The TM1 logging directory for the server. When this parameter is blank it will be derived from the server.

pLogDays

Numeric

7

This will delete all files that follow the  "tm1s*.log" or "tm1auditstore*.log" format and are older than the nominated days.

pErrorDays

Numeric

21

This will delete all files that follow the  "tm1ProcessError*.log" format and are older than the nominated days.

pBedrockDays

Numeric

7

This will delete all files that follow the  "Bedrock*.*" format and are older than the nominated days.

pCSVDays

Numeric

7

This will delete all files that follow the  "*.csv", "*.cma" or "*.txt" format and are older than the nominated days.

pDebug

Numeric

0

The debug mode.


Example

ExecuteProcess('Bedrock.Server.DataDir.ListContents',

    'pLogDir','E:\Database\Logs\'

    'pLogDays', 7,

    'pErrorDays', 21,

    'BedrockDays', 7,

    'pCSVDays', 7,    

    'pDebug',0

    );


Copyright 2011, bedrocktm1.org Tested on: TM1 Versions 9.1 to 10.2.1 / Cognos Express 9.0 to 10.2