Hi,

I deployed my pyramid application on openshift platform. It gives me no. of 
system variables like database username, database password etc. So my 
production ini file have database configuration something like 

# MongoDB
mongodb.host = OPENSHIFT_MONGODB_DB_HOST
mongodb.port = OPENSHIFT_MONGODB_DB_PORT
mongodb.db_name = OPENSHIFT_APP_NAME
mongodb.user = OPENSHIFT_MONGODB_DB_USERNAME
mongodb.password = OPENSHIFT_MONGODB_DB_PASSWORD

Now in my __init__.py file, I am reading those variables & check if those 
present in system variables. If yes, then read value for those from system 
variables. This work fine for database configuration.

My problem is logging. My logger setting is something like :

[handler_filelog]
class = logging.handlers.TimedRotatingFileHandler
args = ('%(here)s/app_error.log', 'H', 24, 100)
level = INFO
formatter = generic

Now every-time I restart application on staging (openshift), it create new 
directory for application. So I am doing multiple restart every week, I 
need to go multiple directories to collect log files. Is there any way I 
can access system variable in ini file & I can store logs at predefine 
location define in system variable instead of application root e.g. $HOME 
variable which point to user home 

Thanks
Aniruddha

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pylons-discuss.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to