Lines Matching defs:newlog
256 static void post_rotate(apr_pool_t *pool, struct logfile *newlog,
267 apr_file_remove(config->linkfile, newlog->pool);
269 fprintf(stderr,"Linking %s to %s\n", newlog->name, config->linkfile);
271 rv = apr_file_link(newlog->name, config->linkfile);
275 newlog->name, config->linkfile, error);
310 argv[1] = newlog->name;
366 struct logfile newlog;
395 apr_strftime(newlog.name, &rs, sizeof(newlog.name), config->szLogRoot, &e);
399 apr_snprintf(newlog.name, sizeof(newlog.name), "%s", config->szLogRoot);
404 apr_snprintf(newlog.name, sizeof(newlog.name), "%s", config->szLogRoot);
408 apr_snprintf(newlog.name, sizeof(newlog.name), "%s.%d", config->szLogRoot, thisLogNum);
412 apr_snprintf(newlog.name, sizeof(newlog.name), "%s.%010d", config->szLogRoot,
416 apr_pool_create(&newlog.pool, status->pool);
418 fprintf(stderr, "Opening file %s\n", newlog.name);
420 rv = apr_file_open(&newlog.fd, newlog.name, APR_WRITE | APR_CREATE | APR_APPEND
422 APR_OS_DEFAULT, newlog.pool);
425 post_rotate(newlog.pool, &newlog, config, status);
434 status->current = newlog;
445 fprintf(stderr, "Could not open log file '%s' (%s)\n", newlog.name, error);
450 apr_pool_destroy(newlog.pool);