| Author |
rerouting or capturing mobilink log stream
|
|
| Spencer Wasden 2006-01-27, 1:24 pm |
| SQL Anywhere Studio 9.0.2.3131
Is there a way to reroute/capture the Mobilink log stream so I can do with
it what I will? I'm already having it written to a file, but I was looking
for something with more control. I know Mobilink has its own logging output
display, but that doesn't work when it's running as a service, does it?
Thanks.
| |
| Liam Cavanagh 2006-01-30, 9:27 am |
| There are the upload_statistics and download_statistics connection and
tables scripts that would allow you to send this type of information to a
database. You could also create JAVA or .NET scripts which use these
scripts to send it to pretty much any where you want them to go.
--
Liam Cavanagh
Sr. Product Manager
Certified ASA Developer Version 8
iAnywhere
"Spencer Wasden" <spencer. wasden@mobiledatafor
ce_xspm.com> wrote in message
news:43da6070@forums
-2-dub...
> SQL Anywhere Studio 9.0.2.3131
>
> Is there a way to reroute/capture the Mobilink log stream so I can do with
> it what I will? I'm already having it written to a file, but I was
> looking for something with more control. I know Mobilink has its own
> logging output display, but that doesn't work when it's running as a
> service, does it?
>
> Thanks.
>
| |
| Spencer Wasden 2006-01-30, 11:25 am |
| Thank you, Liam.
Now I'm wondering how the ML log would compare to the use of these
statistics events in two ways: 1) timing of log output vs event call. 2)
substance of information...for example, is ML server logging with v+ going
to output more info to the logs than I could possibly capture using all the
statistic events?
"Liam Cavanagh" < cavanagh@NOSPAM_iany
where.com> wrote in message
news:43de2658$1@foru
ms-2-dub...
> There are the upload_statistics and download_statistics connection and
> tables scripts that would allow you to send this type of information to a
> database. You could also create JAVA or .NET scripts which use these
> scripts to send it to pretty much any where you want them to go.
>
> --
> Liam Cavanagh
> Sr. Product Manager
> Certified ASA Developer Version 8
> iAnywhere
> "Spencer Wasden" <spencer. wasden@mobiledatafor
ce_xspm.com> wrote in
> message news:43da6070@forums
-2-dub...
>
>
| |
| Liam Cavanagh 2006-01-30, 1:24 pm |
| The timings should be fairly comparable since the statistics and error
handling scripts are fired pretty much when the event happens. For example
the download statistics table script would be fired right after the table is
downloaded.
As far as I know the ML log is not going to have any information in it that
you would not be able to get from these statistics scripts or error handling
scripts. The nice part about having it in a database is that you can easily
query for certain pieces of information, plus you don't have to create a
process to filter log files.
--
Liam Cavanagh
Sr. Product Manager
Certified ASA Developer Version 8
iAnywhere
"Spencer Wasden" <spencer. wasden@mobiledatafor
ce_xspm.com> wrote in message
news:43de4ced@forums
-1-dub...
> Thank you, Liam.
>
> Now I'm wondering how the ML log would compare to the use of these
> statistics events in two ways: 1) timing of log output vs event call. 2)
> substance of information...for example, is ML server logging with v+ going
> to output more info to the logs than I could possibly capture using all
> the statistic events?
>
>
> "Liam Cavanagh" < cavanagh@NOSPAM_iany
where.com> wrote in message
> news:43de2658$1@foru
ms-2-dub...
>
>
| |
| David Fishburn 2006-01-31, 11:24 am |
| "Spencer Wasden" <spencer. wasden@mobiledatafor
ce_xspm.com> wrote in
news:43da6070@forums
-2-dub of sybase.public.sqlanywhere.mobilink:
SW> SQL Anywhere Studio 9.0.2.3131
SW>
SW> Is there a way to reroute/capture the Mobilink log stream so I can do
SW> with it what I will? I'm already having it written to a file, but I
SW> was looking for something with more control. I know Mobilink has its
SW> own logging output display, but that doesn't work when it's running as
SW> a service, does it?
Using the .Net and Java scripting language you can "register" your
script to ML to receive all the "messages" that ML would write to the
log file.
That way, the log file gets it AND your script gets it. What your
script decides to do with it is up to you.
Does that sound like what you want?
--
David Fishburn
Certified ASA Developer Version 8
iAnywhere Solutions - Sybase
Professional Services
Please only post to the newsgroup
Please ALWAYS include version and MORE importantly BUILD number with
EACH post (dbeng9 -v).
EBFs and Maintenance Releases
http://downloads.sybase.com/swx/sdmain.stm
Developer Community / Whitepapers
http://www.ianywhere.com/developer
CaseXpress - to report bugs
http://casexpress.sybase.com
CodeXchange - Free samples
[url]http://ianywhere.codexchange.sybase.com/servlets/ ProjectDocumentList[
/url]
| |
| Spencer Wasden 2006-01-31, 1:24 pm |
| > Using the .Net and Java scripting language you can "register" your
> script to ML to receive all the "messages" that ML would write to the
> log file.
>
> That way, the log file gets it AND your script gets it. What your
> script decides to do with it is up to you.
>
> Does that sound like what you want?
Yes, that sound like exactly what I want. Where can I find information on
doing the registering to ML? Thanks.
| |
| Spencer Wasden 2006-01-31, 1:24 pm |
| Am I going to have problems with the database trying to roll back the rows I
add to my log table due to a sync error? I would want to keep the log rows
even if the synched data was rolled back.
| |
| Spencer Wasden 2006-01-31, 1:24 pm |
| I may have found it. Is it this?
MobiLink Administration Guide
Writing Synchronization Scripts in .NET
Writing .NET synchronization logic
Handling MobiLink server errors with .NET
| |
| David Fishburn 2006-01-31, 1:24 pm |
| "Spencer Wasden" <spencer. wasden@mobiledatafor
ce_xspm.com> wrote in
news:43dfa749$1@foru
ms-2-dub of sybase.public.sqlanywhere.mobilink:
SW> Am I going to have problems with the database trying to roll back the
SW> rows I add to my log table due to a sync error? I would want to keep
SW> the log rows even if the synched data was rolled back.
If you are using SQL scripts then you MUST use the report_error event,
since it is performed on a separate connection to the database for this
very reason.
The handle_error event is performed on the same transaction as the
upload/download so it is rolled back.
--
David Fishburn
Certified ASA Developer Version 8
iAnywhere Solutions - Sybase
Professional Services
Please only post to the newsgroup
Please ALWAYS include version and MORE importantly BUILD number with
EACH post (dbeng9 -v).
EBFs and Maintenance Releases
http://downloads.sybase.com/swx/sdmain.stm
Developer Community / Whitepapers
http://www.ianywhere.com/developer
CaseXpress - to report bugs
http://casexpress.sybase.com
CodeXchange - Free samples
[url]http://ianywhere.codexchange.sybase.com/servlets/ ProjectDocumentList[
/url]
| |
| David Fishburn 2006-01-31, 1:24 pm |
| "Spencer Wasden" <spencer. wasden@mobiledatafor
ce_xspm.com> wrote in
news:43dfa92a$1@foru
ms-2-dub
of sybase.public.sqlanywhere.mobilink:
SW> MobiLink Administration Guide
SW> Writing Synchronization Scripts in .NET
SW> Writing .NET synchronization logic
SW> Handling MobiLink server errors with .NET
SW> I may have found it. Is it this?
Yepper, have fun.
--
David Fishburn
Certified ASA Developer Version 8
iAnywhere Solutions - Sybase
Professional Services
Please only post to the newsgroup
Please ALWAYS include version and MORE importantly BUILD number with
EACH post (dbeng9 -v).
EBFs and Maintenance Releases
http://downloads.sybase.com/swx/sdmain.stm
Developer Community / Whitepapers
http://www.ianywhere.com/developer
CaseXpress - to report bugs
http://casexpress.sybase.com
CodeXchange - Free samples
[url]http://ianywhere.codexchange.sybase.com/servlets/ ProjectDocumentList[
/url]
| |
| Spencer Wasden 2006-02-06, 8:26 pm |
| David,
You said:
Using the .Net and Java scripting language you can "register" your
script to ML to receive all the "messages" that ML would write to the
log file.
Did you really mean "ALL" the messages (that's what I'd like). Or do you
just mean warnings and errors. When I look at the ServerContext interface,
I only see these two events:
LogCallback ErrorListener event
LogCallback WarningListener event
Am I missing something?
Thanks
Spencer
| |
| David Fishburn 2006-02-07, 11:24 am |
| "Spencer Wasden" <spencer. wasden@mobiledatafor
ce_xspm.com> wrote in
news:43e7cfd6$1@foru
ms-1-dub of sybase.public.sqlanywhere.mobilink:
....
SW> Did you really mean "ALL" the messages (that's what I'd like). Or do
SW> you just mean warnings and errors. When I look at the ServerContext
SW> interface, I only see these two events:
SW>
SW> LogCallback ErrorListener event
SW> LogCallback WarningListener event
Only errors and warnings are returned.
Sorry, I thought you could get all.
What sort of information messages are you looking for?
--
David Fishburn
Certified ASA Developer Version 8
iAnywhere Solutions - Sybase
Professional Services
Please only post to the newsgroup
Please ALWAYS include version and MORE importantly BUILD number with
EACH post (dbeng9 -v).
EBFs and Maintenance Releases
http://downloads.sybase.com/swx/sdmain.stm
Developer Community / Whitepapers
http://www.ianywhere.com/developer
CaseXpress - to report bugs
http://casexpress.sybase.com
CodeXchange - Free samples
[url]http://ianywhere.codexchange.sybase.com/servlets/ ProjectDocumentList[
/url]
| |
| Spencer Wasden 2006-02-07, 11:24 am |
| > What sort of information messages are you looking for?
Well, I guess I was thinking anything that went into the log I would like to
capture. But at the same time, I know that could get pretty out of control
if the user is using high verbosity and we're throwing it all into a table.
Any ideas about how (if) log listening has changed in Jasper? Or is could
they expose all log messages in an ebf?
"David Fishburn" <fishburn_spam@off.ianywhere.com> wrote in message
news:Xns976372560F32
Efishburnsybasecom@1
27.0.0.1...
> "Spencer Wasden" <spencer. wasden@mobiledatafor
ce_xspm.com> wrote in
> news:43e7cfd6$1@foru
ms-1-dub of sybase.public.sqlanywhere.mobilink:
>
> ...
> SW> Did you really mean "ALL" the messages (that's what I'd like). Or do
> SW> you just mean warnings and errors. When I look at the ServerContext
> SW> interface, I only see these two events:
> SW>
> SW> LogCallback ErrorListener event
> SW> LogCallback WarningListener event
>
> Only errors and warnings are returned.
> Sorry, I thought you could get all.
>
> What sort of information messages are you looking for?
>
> --
> David Fishburn
> Certified ASA Developer Version 8
> iAnywhere Solutions - Sybase
> Professional Services
> Please only post to the newsgroup
> Please ALWAYS include version and MORE importantly BUILD number with
> EACH post (dbeng9 -v).
>
> EBFs and Maintenance Releases
> http://downloads.sybase.com/swx/sdmain.stm
>
> Developer Community / Whitepapers
> http://www.ianywhere.com/developer
>
> CaseXpress - to report bugs
> http://casexpress.sybase.com
>
> CodeXchange - Free samples
> [url]http://ianywhere.codexchange.sybase.com/servlets/ ProjectDocumentList[
/url]
>
|
|
|
|