Merge pull request #978 from markniebur/file-sink-filename-method
Add method to filesinks to return filename
This commit is contained in:
		@@ -30,6 +30,11 @@ public:
 | 
				
			|||||||
        file_helper_.open(filename, truncate);
 | 
					        file_helper_.open(filename, truncate);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    const filename_t &filename() const
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        return file_helper_.filename();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
protected:
 | 
					protected:
 | 
				
			||||||
    void sink_it_(const details::log_msg &msg) override
 | 
					    void sink_it_(const details::log_msg &msg) override
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -63,6 +63,11 @@ public:
 | 
				
			|||||||
        rotation_tp_ = next_rotation_tp_();
 | 
					        rotation_tp_ = next_rotation_tp_();
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    const filename_t &filename() const
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        return file_helper_.filename();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
protected:
 | 
					protected:
 | 
				
			||||||
    void sink_it_(const details::log_msg &msg) override
 | 
					    void sink_it_(const details::log_msg &msg) override
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -58,6 +58,11 @@ public:
 | 
				
			|||||||
        return fmt::to_string(w);
 | 
					        return fmt::to_string(w);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    const filename_t &filename() const
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        return file_helper_.filename();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
protected:
 | 
					protected:
 | 
				
			||||||
    void sink_it_(const details::log_msg &msg) override
 | 
					    void sink_it_(const details::log_msg &msg) override
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user