jachLog 2.2 released

Today the 2.2 version of the jachLog library was released.

You can learn more about the library in the jachLog v2.0 announcement.

This is a minor release that fixes a couple of bugs and introduces enhancements to the existing classes.

Continue reading “jachLog 2.2 released”

jachLog 2.1 released

Today the 2.1 version of the jachLog library was released.

You can learn more about the library in the jachLog v2.0 announcement.

This is a minor release that simplifies the library integration, fixes minor problems and adds new log visual destinations to be used in GUI desktop applications (VCL and FMX are supported). From the release notes:

Continue reading “jachLog 2.1 released”

jachLog v2.0

jachLog is an open source library that helps us integrate a flexible, stable and powerful machine for the generation of Log entries in our Delphi applications in a super fast way. It is available at github.com/jachguate/jachLogMgr.

I am the author of the library, which I released under the MIT license last year, with no public announcements. I didn’t make many announcements, because the library, while stable, tested, and ready for production, was lacking a number of features that I’ve had in mind for a long time, and I first wanted to get organized, with a plan and some of those features already built in to make some noise.

I’ve recently released version 2.0 of the library and I think is time, so if you didn’t know about it, it’s time you take a look at it and see if it can be useful in your projects.

Its main features are:

Continue reading “jachLog v2.0”

Generic class to convert a enum to string and viceversa

One of the things I always forget how to do, and hence I have to google to re-write the required code, is how to convert a enumerated type to string and a string to a enumerated type (EnumToStr, StrToEnum).

This is, first of all, because traditionally you have to write a different routine for each enumerated type you need, or worst, to directly call GetEnumName/GetEnumValue everywhere to do the hard work.

This is also due, in part, because until now I had no avail myself on the idea to have piece of code based on generics, that is reusable, and then save the routine into one of the libraries I usually have at hand while coding.

With this idea and after some effort, I wrote the class I share now with you, but first, take a look at how it is used, for example:

Continue reading “Generic class to convert a enum to string and viceversa”

Here I’m, writing in English

This is a kind of introduction and justification as for why am I writing this blog in English.

For those who doesn’t know me, I have to say I’m a native Spanish speaker (You’ll find more in the about jachguate section), and I’m writing here although I’m pretty sure my English is far from perfect, but from time to time I feel the need to reach a broader audience with my code, examples and opinions, and this just couldn’t happen in my native tongue.

I already have a blog in Spanish, named El blog de jachguate. If you read Spanish, I recommend it to you. If you don’t, don’t be shy and take a look at the code and if you got interested on a topic paste the url in Google translator to get a English version of my previous posts.

I’m a bit confident about writing in English since my StackOverflow answers usually get positive feedback and people seems to understand what I want to say. Fortunately I write on technical things, so I look better than if you speak with me about anything else on the street. I’m very open, so feel free to send me corrections and improvements on anything you see it’s wrong in the site.

From now, some of the posts I publish in Spanish will get also into the English Blog, but my goal is not to translate all the content. We’ll see.

Thanks for reading and I hope you enjoy and maybe learn something new from time to time here.

Your comments are welcome.