Hi Danielo

Got it. So I can use it, for example to raise error messages for my
> tiddlers? I Just have to create an tiddler with the error information and
> TW will take care of the rest. Still a good thing.
>

That's right. The usual way to do it is to prepare a logger with:

this.logger = new $tw.utils.Logger("mymodulename");

Then raise an alert with:

self.logger.alert("message");

Best wishes

Jeremy



>
> El lunes, 7 de abril de 2014 19:58:42 UTC+2, Jeremy Ruston escribió:
>>
>> Hi Danielo
>>
>> I added the alert mechanism in 5.0.8 as a way to display synchronisation
>> errors. There's a demo in the "Features" tiddler; just click the button
>> labelled "alerts".
>>
>> > The only drawback is that the only icon to close it deletes it. In my
>> opinion it would be better to just remove the tag
>>
>> The idea is that a process that wants to display an error message creates
>> a tiddler containing that message. If the "remove" button just removed the
>> tag then the wiki would fill up with undeleted alert tiddlers.
>>
>> > And.. what about a time based alerts? For example: create a tiddler,
>> tag it as alert and put a field of due date. On that date the alert becomes
>> active
>>
>> Alerts are just the mechanism for delivering a message to the user.
>> Things like time-based reminders will need additional mechanisms to
>> actually schedule the message creation.
>>
>> Best wishes
>>
>> Jeremy
>>
>>
>>
>>
>>
>> On Mon, Apr 7, 2014 at 11:03 AM, Danielo Rodríguez <[email protected]>wrote:
>>
>>> Dis someone else noticed this?
>>> https://github.com/Jermolene/TiddlyWiki5/blob/master/
>>> editions/tw5.com/tiddlers/mechanisms/AlertMechanism.tid
>>>
>>> This is new for me. What is the purpose of the alerts? It looks pretty
>>> cool as a notification mechanism. The only drawback is that the only icon
>>> to close it deletes it. In my opinion it would be better to just remove the
>>> tag. And.. what about a time based alerts? For example: create a tiddler,
>>> tag it as alert and put a field of due date. On that date the alert becomes
>>> active. Sounds interesting.
>>>
>>> WOW!
>>> Why is this so hidden?
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "TiddlyWiki" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> To post to this group, send email to [email protected].
>>>
>>> Visit this group at http://groups.google.com/group/tiddlywiki.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> --
>> Jeremy Ruston
>> mailto:[email protected]
>>
>


-- 
Jeremy Ruston
mailto:[email protected]

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.

Reply via email to