Jean-François,
your software is really great! I was thinking about something similar, when I asked questions in the eibd forum. But since I'm very busy with other things, ideas are just in my head and not on my comuter. :-) Anyway...
I planned something, what could be implemented in your structure as a "logging service".
i.e. in the <services> - section a line could be added with
<logging id="xyz" file="filename.log" rotate="00:00" />
Later, in the actions section an action could be added, which creates a log entry.
the format of the file could be similar to the apache logs or xml (could be set by parameter)
Reasons for my requests:
a) I just want very few information logged, like the information of motion detectors or such. And i want them just to be logged under certain conditions. (if I#m not at home or so)
b) I want to create some logs, which can be used by other programs. (mrtg...) For example I have a wheather-station and I want to create log files for temperature values / wind speed and such.
What do you think about this?!
Best Regards, Jens
P.S.: I have eibd, linknx, knxweb running on buffalo linkstation...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks for the feedback. I also think that we need more enhanced logging. Your idea of an action that puts a message in the log is good. Do you think that the ability to log object values with timestamps is enough, or would it be useful to also have a kind of "printf like" formatting?
From the description you give, I understand that you also want to be able to configure multiple log files to log different things simultaneously. Right?
I don't know when I'll have the time to look at this, now I'm busy with KnxWeb. But thanks for the ideas anyway.
Kr,
Jean-François
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Jean-François,
sorry for flooding you tonight with my requests :-)...
My requests are somehow coupled - the logging I had primarily in mind for data rendering/reporting in an external application.
This is coupled with other requests (arithmetic functions / variables and such) So the answer is a) "yes", printf-formatting would be fine (up to a certain degree, to be able to translate to percentages or similar)
b) just logging of timestamps and object values is not enough, since also the result of arithmetic functions, or other(?) variables should be able to be stored in a log file.
The split into multiple log files is just to make postprocessing easier by seperate "report generators" or "graphers".
Thanks, best Regards, jens
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Jean-François,
your software is really great! I was thinking about something similar, when I asked questions in the eibd forum. But since I'm very busy with other things, ideas are just in my head and not on my comuter. :-) Anyway...
I planned something, what could be implemented in your structure as a "logging service".
i.e. in the <services> - section a line could be added with
<logging id="xyz" file="filename.log" rotate="00:00" />
Later, in the actions section an action could be added, which creates a log entry.
the format of the file could be similar to the apache logs or xml (could be set by parameter)
Reasons for my requests:
a) I just want very few information logged, like the information of motion detectors or such. And i want them just to be logged under certain conditions. (if I#m not at home or so)
b) I want to create some logs, which can be used by other programs. (mrtg...) For example I have a wheather-station and I want to create log files for temperature values / wind speed and such.
What do you think about this?!
Best Regards, Jens
P.S.: I have eibd, linknx, knxweb running on buffalo linkstation...
Hi,
Thanks for the feedback. I also think that we need more enhanced logging. Your idea of an action that puts a message in the log is good. Do you think that the ability to log object values with timestamps is enough, or would it be useful to also have a kind of "printf like" formatting?
From the description you give, I understand that you also want to be able to configure multiple log files to log different things simultaneously. Right?
I don't know when I'll have the time to look at this, now I'm busy with KnxWeb. But thanks for the ideas anyway.
Kr,
Jean-François
Hi Jean-François,
sorry for flooding you tonight with my requests :-)...
My requests are somehow coupled - the logging I had primarily in mind for data rendering/reporting in an external application.
This is coupled with other requests (arithmetic functions / variables and such) So the answer is a) "yes", printf-formatting would be fine (up to a certain degree, to be able to translate to percentages or similar)
b) just logging of timestamps and object values is not enough, since also the result of arithmetic functions, or other(?) variables should be able to be stored in a log file.
The split into multiple log files is just to make postprocessing easier by seperate "report generators" or "graphers".
Thanks, best Regards, jens