column size

General discussions here

column size

Postby nguyen.tho on Mon Sep 15, 2008 7:53 pm

Is it possible to change the size of the Date, Host and Syslogtag colum? I tried out the new v2.3 and for most, the message column is the same or small than my Host or Syslogtag column. Was wondering if there is a way to make those column smaller so I would actually get more for the Message column.
nguyen.tho
New
 
Posts: 2
Joined: Mon Sep 15, 2008 7:36 pm

phpLogCon professional services

  • Custom phpLogCon configuration?
  • Maintenance Contract?
  • Installation support?

Re: column size

Postby rgerhards on Mon Sep 15, 2008 8:00 pm

Oh, that's a good idea. The view definition for a column could simply have width argument which, if provided, is copied over to the corresponding html entity.

Rainer
User avatar
rgerhards
Site Admin
 
Posts: 1780
Joined: Thu Feb 13, 2003 11:57 am

Re: column size

Postby alorbach on Tue Sep 16, 2008 8:41 am

Actually you can specify the width of each field within the file include/constants_logstream.php.
You will find a $fields[<<FIELDNAME>>]['DefaultWidth'] entry for each field which specifies the default width in pixels.

There, you can modify the field width for now.

best regards,
Andre Lorbach
User avatar
alorbach
Site Admin
 
Posts: 921
Joined: Thu Feb 13, 2003 11:55 am

Re: column size

Postby nguyen.tho on Wed Sep 17, 2008 8:35 pm

I tried to modify the constants_logstream.php but it does not work. The setting there doesn't force the column size. I tried change on bot the HOST and SYSLOGTAG but it made no difference.

It would be cool if the hostname/syslog field would take the default column width and wrap the text if it is longer than the set width just like the message column.
nguyen.tho
New
 
Posts: 2
Joined: Mon Sep 15, 2008 7:36 pm

Re: column size

Postby alorbach on Thu Sep 18, 2008 9:11 am

The problem is that the syslogtags may need to be truncated, so the column width is not extended.
The next minor update of the devel branch will contain a new configuration variable "ViewStringCharacterLimit" which will enabled you to truncate all string type values like the syslogtag, and avoid this problem once and for all ;)

--
best regards,
Anre Lorbach
User avatar
alorbach
Site Admin
 
Posts: 921
Joined: Thu Feb 13, 2003 11:55 am

Google Ads



Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron