I am doing a 3.0.x plugin using C. Similar to the documentation hosted here:
http://trafficserver.apache.org/docs/trunk/sdk/plugin-management/guide-to-the-logging-api.en.html

I have gotten everything to compile, and my plugin works at a basic level but I 
want to get logging going so I can get information about next steps.

When I put in all the pieces described above no log was created in my log 
directory. 
Here is my config file snippet:


##############################################################################
   # possible values for logging_enabled:
   #   0: no logging at all
   #   1: log errors only
   #   2: log transactions only
   #   3: full logging (errors + transactions)
CONFIG proxy.config.log.logging_enabled INT 3
CONFIG proxy.config.log.max_secs_per_buffer INT 5
CONFIG proxy.config.log.max_space_mb_for_logs INT 25000
CONFIG proxy.config.log.max_space_mb_for_orphan_logs INT 25
CONFIG proxy.config.log.max_space_mb_headroom INT 1000
CONFIG proxy.config.log.hostname STRING localhost
CONFIG proxy.config.log.logfile_dir STRING /var/log/trafficserver
CONFIG proxy.config.log.logfile_perm STRING rw-r--r--
CONFIG proxy.config.log.custom_logs_enabled INT 1
CONFIG proxy.config.log.squid_log_enabled INT 1
CONFIG proxy.config.log.squid_log_is_ascii INT 0

I'm guessing this could be configuration or permissions but any clue on where 
to start to debug this? Or what to look for?

Permissions on logging dir:
[root@man01 trafficserver]# ls -la /var/log/trafficserver/
total 32
drwxr-xr-x   2 ats  ats   4096 Jan 24 14:51 .
drwxr-xr-x. 19 root root  4096 Jan 29 03:31 ..
-rw-r--r--   1 ats  ats    522 Jan 28 22:52 diags.log
-rw-r--r--   1 ats  ats    540 Jan 28 22:52 manager.log
-rw-r-----   1 root root 12897 Jan 28 22:52 traffic.out

Sincerely,
Valerie

Reply via email to