Tool AddLogs: B4A / B4J / B4I - Automatic insertion of log statements

https://www.b4x.com/android/forum/threads/b4a-automatic-insertion-of-log-statements.47464/

upload_2014-12-5_12-41-42.png


It is not free but it costs a few dollars.
 

Attachments

  • AddLogs20_Setup.zip
    407.3 KB · Views: 129
Last edited:

LucaMs

Expert
Licensed User
Longtime User
No one has tested it?
Let me know if it works.
Maybe I could make it possible to customize the log messages.

Nessuno l'ha provato?
Fatemi sapere se funziona.
Forse potrei consentire di personalizzare i messaggi log.
 

RauchG

Active Member
Licensed User
Longtime User
Hello LucaMs,

I tested it a try. Actually a very good tool.

I have tested it with a app with German text. Unfortunately, all special characters are destroyed. Some new entries require parameters.

Maybe you can make improvements there.

greeting
RauchG
 

LucaMs

Expert
Licensed User
Longtime User
Hello LucaMs,

I tested it a try. Actually a very good tool.

I have tested it with a app with German text. Unfortunately, all special characters are destroyed. Some new entries require parameters.

Maybe you can make improvements there.

greeting
RauchG


Oohh thanks for the reply.

I feared the characters question.
https://www.b4x.com/android/forum/threads/net-file-readalltext-utf8encoding.46947/

If you read the thread you'll see that I thought that the problem was solved.
I'll try again ;)


I did not understand this:
Some new entries require parameters



Thanks for trying.
 

LucaMs

Expert
Licensed User
Longtime User
Hello LucaMs,

I tested it a try. Actually a very good tool.

I have tested it with a app with German text. Unfortunately, all special characters are destroyed. Some new entries require parameters.

Maybe you can make improvements there.

greeting
RauchG


Can you try the version 1.1? Thanks
 

LucaMs

Expert
Licensed User
Longtime User
this line "modMyUtils.MyLog (TAB &" StringArgs () = "& StringArgs ())"
in debug: error "missing parameter"

Thanks, I need to check the parameter type :D

But then...? Should I write a log line for each element in StringArgs()? Uhm... maybe I could set it as optional.
 

LucaMs

Expert
Licensed User
Longtime User
Yes, that is wrong because the parameter is an array; I'm fixing it.

But this one is not clear, for me. Could you find the related routine statement, please?
 

RauchG

Active Member
Licensed User
Longtime User
That is strange: please, check which routine and what kind of parameters it receives

is in 'DataBase class module
'Version .98 Beta - October 8th, 2012
'Author: Margret

In the Sub:
'Returns the system date as a string
Sub Date () As String
modMyUtils.MyLog ("Exec: db.Date")
modMyUtils.MyLog (TAB & "=" &)

Return DateTime.Date (DateTime.Now)
End Sub
 

LucaMs

Expert
Licensed User
Longtime User
is in 'DataBase class module
'Version .98 Beta - October 8th, 2012
'Author: Margret

In the Sub:
'Returns the system date as a string
Sub Date () As String
modMyUtils.MyLog ("Exec: db.Date")
modMyUtils.MyLog (TAB & "=" &)

Return DateTime.Date (DateTime.Now)
End Sub


Thanks, I'll check it
 

LucaMs

Expert
Licensed User
Longtime User
Final consideration.

The development of this tool took me 12 hours, maybe more.

Even considering that I can be tired, slow and rusty with VB.Net,
I could develop it in 8 hours.

8 hours is a working day for which an employee could earn € 60 / € 80, maybe more.

Of course, this is not a required work by a boss. But this will earn me € 0 and apps, including the percentage for Google, taxes and costs for the movement of money, make you earn almost as much (except for rare cases).
 
Last edited:

LucaMs

Expert
Licensed User
Longtime User
Can you post the original routine source code?

Thanks for your help, @RauchG :)

[P.S. probably I have found the error in the code for maps; just another 30' of work :mad:]
 
Last edited:

LucaMs

Expert
Licensed User
Longtime User
I meant just the sub routine.

If it contains a parameter of type Map, I have corrected the error right now.

Thanks again


[P.S. We have something similar @RauchG: the little French nose :D]
 
Top