Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Log file not logging... #18

Closed
agilbett opened this issue Oct 26, 2016 · 1 comment
Closed

Log file not logging... #18

agilbett opened this issue Oct 26, 2016 · 1 comment

Comments

@agilbett
Copy link
Contributor

On start up of log files are not being created. Config below:


{
    "LogName" : "ODC_Log_new",
    "LogFileSizekB" : 50000,
    "NumLogFiles":  1,
    "LOG_LEVEL":    "NORMAL",

    "Plugins" : 
    [
        {
            "Name" : "ConcoleUI",
            "Type" : "ConsoleUI",
            "Library" : "ConsoleUI",
            "ConfFilename" : "",
            "ConfOverrides" : {} 
        }
    ],

    "Ports" :
    [
        {
            "Name" : "DNP3_1",
            "Type" : "DNP3Master",
            "Library" : "DNP3Port",
            "ConfFilename" : "",
            "ConfOverrides" : 
            {
                "SerialDevice" : "/dev/ttyUSB0",
                "BaudRate" : 9600,
                "Parity" : "NONE",
                "DataBits" : 8,
                "StopBits" : 1,
                "MasterAddr" : 0,
                "OutstationAddr" : 2,

                //------- DNP3 Link Configuration--------#
                "LinkKeepAlivems" : 60000,
                "LinkNumRetry" : 0,
                "LinkTimeoutms" : 5000,
                "LinkUseConfirms" : false,

                //-------- DNP3 Common Application Configuration -------------#
                "EnableUnsol": true,
                "UnsolClass1": false,
                "UnsolClass2": false,
                "UnsolClass3": false,

                //-------Outstation Stack conf--------#
                "SelectTimeoutms" : 30000,
                "SolConfirmTimeoutms" : 30000,
                "UnsolConfirmTimeoutms" : 30000,
                "EventBinaryResponse": "Group2Var2",
                "EventAnalogResponse": "Group32Var5",
                "EventCounterResponse": "Group22Var1",

                "StaticBinaryResponse": "Group1Var2",
                "StaticAnalogResponse": "Group30Var5",
                "StaticCounterResponse": "Group20Var1",

                "WaitForCommandResponses": false,

                //-------Point conf--------#
                "Binaries" : [{"Index": 0},{"Index": 1},{"Index": 5},{"Index": 6},{"Index": 7},{"Index": 8},{"Index": 10},{"Index": 11},{"Index": 12},{"Index": 13},{"Index": 14},{"Index": 15}],
                "Analogs" : [{"Range" : {"Start" : 0, "Stop" : 5}}],
                "BinaryControls" : [{"Range" : {"Start" : 0, "Stop" : 4}}]
            }
        }

    ]
}
@neilstephens
Copy link
Owner

The master doesn't have any scans configured, and unsol for all classes disabled, so it won't do much when it starts up, and the log file will only be created once there's a message to log. Try running at a more verbose log level (say "ALL"), or configure some scans.

Cheers,
Neil.

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

No branches or pull requests

2 participants