< prev index next >

src/share/vm/logging/logFileOutput.hpp

Print this page

        

*** 56,79 **** size_t _archive_name_len; size_t _rotate_size; size_t _current_size; void archive(); - void rotate(); bool configure_rotation(const char* options); char *make_file_name(const char* file_name, const char* pid_string, const char* timestamp_string); static size_t parse_value(const char* value_str); ! bool should_rotate() const { ! return _file_count > 0 && _rotate_size > 0 && _current_size >= _rotate_size; } public: LogFileOutput(const char *name); virtual ~LogFileOutput(); virtual bool initialize(const char* options); virtual int write(const LogDecorations& decorations, const char* msg); virtual const char* name() const { return _name; } --- 56,80 ---- size_t _archive_name_len; size_t _rotate_size; size_t _current_size; void archive(); bool configure_rotation(const char* options); char *make_file_name(const char* file_name, const char* pid_string, const char* timestamp_string); static size_t parse_value(const char* value_str); ! bool should_rotate(bool force) const { ! return (_file_count > 0) && ! (force || (_rotate_size > 0 && _current_size >= _rotate_size)); } public: LogFileOutput(const char *name); virtual ~LogFileOutput(); virtual bool initialize(const char* options); virtual int write(const LogDecorations& decorations, const char* msg); + virtual void rotate(bool force); virtual const char* name() const { return _name; }
< prev index next >