Namespaces | Enumerations | Functions

LogUtils.h File Reference

A brief file description. More...

#include "time.h"
#include "libts.h"
#include "Arena.h"
Include dependency graph for LogUtils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  LogUtils

Enumerations

enum  LogUtils::AlarmType { LogUtils::LOG_ALARM_ERROR = 0, LogUtils::LOG_ALARM_WARNING, LogUtils::LOG_ALARM_N_TYPES }

Functions

static long LogUtils::timestamp ()
int LogUtils::timestamp_to_str (long timestamp, char *buf, int size)
char * LogUtils::timestamp_to_netscape_str (long timestamp)
char * LogUtils::timestamp_to_date_str (long timestamp)
char * LogUtils::timestamp_to_time_str (long timestamp)
unsigned LogUtils::ip_from_host (char *host)
void LogUtils::manager_alarm (AlarmType alarm_type, const char *msg,...) TS_PRINTFLIKE(2
void void LogUtils::strip_trailing_newline (char *buf)
char * LogUtils::escapify_url (Arena *arena, char *url, size_t len_in, int *len_out, char *dst=NULL, size_t dst_size=0, const unsigned char *map=NULL)
char * LogUtils::int64_to_str (char *buf, unsigned int buf_size, int64_t val, unsigned int *total_chars, unsigned int req_width=0, char pad_char='0')
void LogUtils::remove_content_type_attributes (char *type_str, int *type_len)
int LogUtils::timestamp_to_hex_str (unsigned timestamp, char *str, size_t len, size_t *n_chars=0)
int LogUtils::seconds_to_next_roll (time_t time_now, int rolling_offset, int rolling_interval)
int LogUtils::file_is_writeable (const char *full_filename, off_t *size_bytes=0, bool *has_size_limit=0, uint64_t *current_size_limit_bytes=0)

Detailed Description

A brief file description.

License

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Definition in file LogUtils.h.