ID |
Date |
Icon |
Author |
Author Email |
Category |
OS |
ELOG Version |
Subject |
66091
|
Tue Dec 2 17:10:05 2008 |
| weiluo | lwsy711@gmail.com | Question | Linux | | Re: How to attach screen shot in elog |
Stefan Ritt wrote: |
weiluo wrote: |
I want to know if there were some way to insert a screen shot directly into the log book instead of going through the "save-attach" procedure. i.e. add some plug in button to do this under Linux?
Or, can I just make a plain log file "xxxx.log" and put it into the directory? Will that work?
Thanks
|
You cannot directly paste a screen shot into an elog entry. Use HoverSnap (Windows) or ksnapshot (linux) to produce directly an image file, then you need only two mouse clicks (browse and select file). There is also an Add-On for FireFox called "dragdropupload" which can be used for drag-and-drop a file into the attachment file selector.
|
I see. But what I want to do now is writing a script to make a elog entry, is that possible? I mean, I don't know if the log entry I generated could be recognized by elog. e.g. the following text is generated by me, no through elog, is there a way to let them shown on elog?
Date: Mon, 01 Dec 2008 18:45:21 -0500
Author: Anonymous
Author Email: $user_email
Category: Shift summary
Subject: test
Attachment: 081201_184113_bigcal_014.jpg
Encoding: HTML
========================================
test
|
66092
|
Tue Dec 2 17:15:36 2008 |
| Stefan Ritt | stefan.ritt@psi.ch | Question | Linux | | Re: How to attach screen shot in elog |
weiluo wrote: |
Stefan Ritt wrote: |
weiluo wrote: |
I want to know if there were some way to insert a screen shot directly into the log book instead of going through the "save-attach" procedure. i.e. add some plug in button to do this under Linux?
Or, can I just make a plain log file "xxxx.log" and put it into the directory? Will that work?
Thanks
|
You cannot directly paste a screen shot into an elog entry. Use HoverSnap (Windows) or ksnapshot (linux) to produce directly an image file, then you need only two mouse clicks (browse and select file). There is also an Add-On for FireFox called "dragdropupload" which can be used for drag-and-drop a file into the attachment file selector.
|
I see. But what I want to do now is writing a script to make a elog entry, is that possible? I mean, I don't know if the log entry I generated could be recognized by elog. e.g. the following text is generated by me, no through elog, is there a way to let them shown on elog?
Date: Mon, 01 Dec 2008 18:45:21 -0500
Author: Anonymous
Author Email: $user_email
Category: Shift summary
Subject: test
Attachment: 081201_184113_bigcal_014.jpg
Encoding: HTML
========================================
test
|
For what you need you can use the "elog" utility, as described in https://midas.psi.ch/elog/userguide.html at the bottom. Using the "-f" option you can add attachments there. |
66093
|
Tue Dec 2 17:18:10 2008 |
| weiluo | lwsy711@gmail.com | Question | Linux | | Re: How to attach screen shot in elog |
Stefan Ritt wrote: |
weiluo wrote: |
Stefan Ritt wrote: |
weiluo wrote: |
I want to know if there were some way to insert a screen shot directly into the log book instead of going through the "save-attach" procedure. i.e. add some plug in button to do this under Linux?
Or, can I just make a plain log file "xxxx.log" and put it into the directory? Will that work?
Thanks
|
You cannot directly paste a screen shot into an elog entry. Use HoverSnap (Windows) or ksnapshot (linux) to produce directly an image file, then you need only two mouse clicks (browse and select file). There is also an Add-On for FireFox called "dragdropupload" which can be used for drag-and-drop a file into the attachment file selector.
|
I see. But what I want to do now is writing a script to make a elog entry, is that possible? I mean, I don't know if the log entry I generated could be recognized by elog. e.g. the following text is generated by me, no through elog, is there a way to let them shown on elog?
Date: Mon, 01 Dec 2008 18:45:21 -0500
Author: Anonymous
Author Email: $user_email
Category: Shift summary
Subject: test
Attachment: 081201_184113_bigcal_014.jpg
Encoding: HTML
========================================
test
|
For what you need you can use the "elog" utility, as described in https://midas.psi.ch/elog/userguide.html at the bottom. Using the "-f" option you can add attachments there.
|
Got it! This is exactly what I need, thanks a lot! |
66094
|
Tue Dec 2 23:23:34 2008 |
| mike cianci | mike2.cianci@comcast.net | Question | Windows | | Multi attribute email notification |
What I would like to do is:
If attribute "A" and attribute "B" - send email to person #1
If attribute "A" and attribute "C" - send email to person #2
(I apologize if this in the documentation. I have looked at the "Email" section and have either missed it or don't understand it. Thank you for the help) |
66095
|
Wed Dec 3 15:55:52 2008 |
| Stefan Ritt | stefan.ritt@psi.ch | Question | Windows | | Re: Multi attribute email notification |
mike cianci wrote: |
What I would like to do is:
If attribute "A" and attribute "B" - send email to person #1
If attribute "A" and attribute "C" - send email to person #2
(I apologize if this in the documentation. I have looked at the "Email" section and have either missed it or don't understand it. Thank you for the help)
|
This is not implemented, you only can test on a single attribute. There might be a possibility with conditional attributes, but I have never tried this out. |
66098
|
Sat Dec 6 22:30:56 2008 |
| mike cianci | mike2.cianci@comcast.net | Question | | | Change background color |
I copied the following line from the ELOG documentation file to my config file (with the appropriate changes to the attribute and value fields) and nothing happens. Am I missing something?
Style importance severe = background-color:red
Thanks for all your help.
|
66099
|
Mon Dec 8 08:59:56 2008 |
| Stefan Ritt | stefan.ritt@psi.ch | Question | Other | 2.7.5-2143 | Re: Change background color |
mike cianci wrote: |
I copied the following line from the ELOG documentation file to my config file (with the appropriate changes to the attribute and value fields) and nothing happens. Am I missing something?
Style importance severe = background-color:red
Thanks for all your help.
|
Just the "usual candidates":
- Any typo?
- Edited the wrong file?
- Must send a HUP signal to elogd if running under linux
- Note that the style changes only in the list display
I just tried with a minimal configuration file:
[demo]
Attributes = Author, Importance, Subject
Options Importance = normal, severe
Style Importance severe = background-color:red
and it just worked fine:

|
66102
|
Tue Dec 9 00:22:41 2008 |
| Dennis Seitz | dseitz@berkeley.edu | Question | All | 2.7.5 | Re: Re: $entry time not readable by Subst, else not datetime type? - possible Preset bug? |
Dennis Seitz wrote: |
Stefan Ritt wrote: |
Dennis Seitz wrote: | FYI, I think there's a little bug in the datetime vs $date implementation.
Here's a section of my config file implementing a "Last Edit" field:
Type Last Edit = datetime
Preset Last Edit =$date
Locked Attributes = Last Edit
Subst on edit Last Edit = $date
Start page = ?rsort=Last Edit
I expected that "Preset Last Edit =$date" would set Last Edit to the current date when I create a new entry. In fact that leaves the field empty, or at least not in datetime format.
I found that using this instead works:
Preset Last Edit =$entry time
which seems contradictory since
Subst on edit Last Edit = $date
works fine. |
Do you have an old version of elog? Using the current version with a configuration file:
Attributes = Author, Type, Last Edit
Type Last Edit = datetime
Preset Last Edit =$date
Locked Attributes = Last Edit
Start page = ?rsort=Last Edit
I get the correct behavior:
 |
Yes, I'm using 2.7.3 - I'll try upgrading, sorry. I'll reply with the outcome. |
Everything works fine with 2.7.5, thanks! |