Log management in Grails Applications (Easy log management and continuous log viewing)

April 8, 2009 at 10:46 am 2 comments

To me one of the most important features of the Grails is the ability to change application behavior in the runtime (We can reload application, controller, filters, gsp files and etc). Hence to change the code, to see the log files,  to back up logs, we need direct application server access. We use telnet, a lot of ssh utilities, or if we have direct access to server machine we can use file explorer and utilities on the machine. However, if we don’t have any of these tools or if we don’t have any direct access to machine, we are stuck.

Nowadays I am really curious about whether we can manage the whole application from the web without server access to solve the above problem. To do this, I started to implement CodeEditor. It goes fine and I will ad many more features to CodeEditor. But, I also think that managing logging mechanism of application is as important as to be able to change code from the web. So, I started to implement another plug-in which is called as LogManager.

LogManager will have the following functionalities:

  1. LogManager will have a viewer which is like UNIX tail tool which continuously follows specified file and it print any characters added to to file to screen. LogManager viewer will do the same functionality for Grails application log files. Users will be able to select a log file and file content will be sent to users viewer from server-side. Log file will continuously be polled and any change in the log file will be sent to user.
  2. LogManager will be able to roll any log file at any time.
  3. LogManager will be able change a lot of logging setting (setting log levels, adding/removing log appenders, etc.)
  4. LogManager will persist all of the settings.

I already implemented and finished item 1 and 2. Soon, I will release this plug-in with these functionalities. Later, I will implement item 3 and 4.


Entry filed under: Grails, LogManager, Projects. Tags: , , , , , .

Why to use CodeEditor in Grails Applications? CodeEditor 0.2.3 will be released soon!

2 Comments Add your own

  • 1. Michael Fenner  |  August 16, 2012 at 9:42 am


    what is the status of your LogManager. It seems it never made it as a plugin 😦

    is it still in development? Is it possible to see the current code status?



    • 2. enguzekli  |  August 16, 2012 at 10:04 am

      Hi, it is already implemented. But I have not published yet. Currently, log viewing part is implemented. Log settings part is not implemented yet. If you want this plugin, please contact me from enguzekli@hotmail.com


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

Trackback this post  |  Subscribe to the comments via RSS Feed

My Twitter

%d bloggers like this: